Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
[ad_1]
I’m attempting to assign worth to property however getting bellow difficulty.
func buildClassViews(accessibilityID: String, information: Binding<[Passenger]>, selectedPassengerId: inout String) -> [AnyView] {
var views: [AnyView] = []
@StateObject var viewModel: ViewModel
for aspect in information {
views.append(
VStack {
HStack {
VStack(alignment: .main, spacing: 0) {
Textual content(aspect.fullName.wrappedValue ?? "")
Spacer()
}
.onAppear(carry out: {
selectedPassengerId = "(aspect.passengerId)" //
})
}
.convertToAnyView())
}
}
}
Tried few issues however not getting any clue….undecided what is that this difficulty and easy methods to resolve it.
[ad_2]