How get rootViewController with iPadOS multi window (SceneDelegate)?
问题 I am using Xcode 11 (beta3) and building an app for iOS 13. In my project I created the delegate methods for UIWindowSceneDelegate declaring it in Info.plist. Now I'm able to create multiple windows (and UIScene). How can I access the rootViewController now I've not anymore a single window? I need it to get some reference to objects and bounds it holds. In my AppDelegate window is nil , and in my ViewController (child view controller) instance I tried using self.view.window.rootViewController