Post

Replies

Boosts

Views

Activity

Comment on 'windows' was deprecated in iOS 15.0: Use UIWindowScene.windows?
My App is a SwiftUI app. Inside, I am embedding a SwiftUI View inside a UIViewController subclass. In this UIViewController subclass, how do I get hold of the current UIWindowScene? I need access to the current window for layout reasons. If "UIApplication.shared.windows" is deprecated, then how do I get access to the current window, in a SwiftUI app?
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Sep ’21