Posts

Post not yet marked as solved
25 Replies
As for as I can tell @ObservableObject still does not work in iOS 13 beta 8 using XCode 11 beta 6.Here is what worked for me:1. I changed@ObservedObject var location: MYLocationManager = MYLocationManager()to:@EnvironmentObject var location: MYLocationManager2. In the SceneDelegate I added:let myLocationManager = MYLocationManager()and:window.rootViewController = UIHostingController(rootView: CoreLocationView_NeedsEnv() .environmentObject(myLocationManager)No more crash!!I know this is not a solution for @ObservableObject, but it is a workaround until Apple get's it figured out. Thanks to Fabian and greycampbell on SO!
Post not yet marked as solved
25 Replies
I just upgraded to iOS beta 8. No difference. I even copied and pasted example code from Paul Hudson using ObservedObject and it all crashed too, so I know it's not me.Come on Apple!
Post not yet marked as solved
25 Replies
I am still having the same issue. I am using XCode 11 beta 6, and running the app on a device using iOS 13 beta 7. The app runs on a simulator, not a real device.