I want to pass a binding into an immersive space. The following doesn’t work because Binding
doesn’t conform to Decodable
.
ImmersiveSpace(id: "id", for: Binding<Int>.self) { binding in
MyView(binding: binding)
}
I want to pass a binding into an immersive space. The following doesn’t work because Binding
doesn’t conform to Decodable
.
ImmersiveSpace(id: "id", for: Binding<Int>.self) { binding in
MyView(binding: binding)
}