struct ImmersiveView: View {
@StateObject var arKitVM = ARKitViewModel()
var body: some View {
RealityView { content in
}
.task {
await arKitVM.runSession()
}
.task {
await arKitVM.processUpdates()
}
}
}
The ARKitViewModel is initialized when entering the immersive space. I receive the error message during runSession(). In this method, I run the ARKitSession with the data provider.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: