Hello!
I have spent the larger part of the day trying to determine how to get a reference to the currently active window, in a one-scene app running on iOS 15, so that I can access a reliable reference to the rootViewController.
Before 'scenes' came along we used this:
ctrlr = UIApplication.shared.keywindow.rootViewController
Now, thanks to Apple extending iOS to support multiple instantiations of a running App, that method is deprecated and I can no longer figure out how to get a reference to current-scene/current-window.
Please help me out here. I'm at a complete loss, after hours of research into the docs and forums.
Thank you!
6
1
7.7k