Thanks. The firstScene object isn't nil, until it's windows or keyWindow properties are both nil. Could that be the problem?
This is what the object looks like in the debugger:
<UIWindowScene: 0x106b0ef40; role: UIWindowSceneSessionRoleApplication; activationState: UISceneActivationStateForegroundActive> {
session = <UISceneSession: 0x600001793200; persistentIdentifier: com.myapp.name> {
configuration = <UISceneConfiguration: 0x600001794c40; name: 0x0>;
};
delegate = (nil);
screen = <UIScreen: 0x10711b1a0; bounds: {{0, 0}, {1366, 1024}}; mode: <UIScreenMode: 0x600000268bc0; size = 2732.000000 x 2048.000000>>;
}
I never adopted the UIScenes and UIWindowsScene APIs from iOS13+, and I run my iOS app as a single-window app. Would I have to change that to be able to run my app as a native VisionOS app?
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: