Hi! In an iOS 14 app developed with XCode 12 using SwiftUI, I need to access the Scene object of the current view. However, I couldn't find the way.
Some notes online said that I can use expressions such as self.view.window.windowScene to get the scene. However, I cannot find a "window" property in View protocol.
Do you know how to do it?
Thank you!
Some notes online said that I can use expressions such as self.view.window.windowScene to get the scene. However, I cannot find a "window" property in View protocol.
Do you know how to do it?
Thank you!