You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm glad to see I'm not the only one experiencing this apparent oversight
"Unexpectedly, the main view receives onAppear() before your app receives the scene phase change. In the sample above, that would be ContentView. That’s like receiving viewWillAppear() on your root view controller before application(_:didFinishLaunchingWithOptions:) gets called."
This is exactly the behavior I ran across when trying to translate my iOS (UIKit) experience to a macOS (AppKit) project. I couldn't understand why nothing was being set up properly in my main view until I realized that viewWillAppear was being called in the ViewController before the AppDelegate's didFinishLaunching... method was called.
The text was updated successfully, but these errors were encountered:
Thanks so much for leaving feedback about this blog post! After 2 weeks of inactivity these issues are automatically closed, but feel free to continue the discussion!
I'm glad to see I'm not the only one experiencing this apparent oversight
"Unexpectedly, the main view receives onAppear() before your app receives the scene phase change. In the sample above, that would be ContentView. That’s like receiving viewWillAppear() on your root view controller before application(_:didFinishLaunchingWithOptions:) gets called."
This is exactly the behavior I ran across when trying to translate my iOS (UIKit) experience to a macOS (AppKit) project. I couldn't understand why nothing was being set up properly in my main view until I realized that viewWillAppear was being called in the ViewController before the AppDelegate's didFinishLaunching... method was called.
The text was updated successfully, but these errors were encountered: