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
Seems like there is a way to get the top UIViewController from the current scene, using a SceneDelegate, set inside an AppDelegate, which again is injected into the SwiftUI app. To me this doesn't look like the most beautiful solution, but maybe it helps for now.
I am getting this warning in the IDE:
'windows' was deprecated in iOS 15.0: Use UIWindowScene.windows on a relevant window scene instead
on this line of code:
let window = UIApplication.shared.windows.filter { $0.isKeyWindow }.first
and when I try:
let window = UIWindowScene.windows.filter { $0.isKeyWindow }.first
I get this error in the IDE:
Instance member 'windows' cannot be used on type 'UIWindowScene'; did you mean to use a value of this type instead?
The text was updated successfully, but these errors were encountered: