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.
Post
Replies
Boosts
Views
Activity
It seems that my answer was deleted or not accepted. I checked it and it is not initialized before entering the immersive space. I also tried some recommendations from Stackoverflow but nothing helped.
Thanks, it seems to work. I receive anchor updates with the needed information.
Did it fix the problem?
same problem currently