An object containing information about one of your app's scenes.
- iOS 13.0+
- Mac Catalyst 13.0+
- tvOS 13.0+
UIScene object manages a unique runtime instance of your scene. When the user adds a new scene to your app, or when you request one programmatically, the system creates a session object to track that scene. The session contains a unique identifier and the configuration details of the scene. UIKit maintains the session information for the lifetime of the scene itself, destroying the session in response to the user closing the scene in the app switcher.
You do not create session objects directly. UIKit creates sessions in response to user interactions with your app. You can also ask UIKit to create a new scene and session programmatically by calling the
request method of
UIApplication. UIKit initializes the session with default configuration data based on the contents of your app's