An object that represents one instance of your app's user interface.
- iOS 13.0+Beta
- Mac Catalyst 13.0+Beta
- tvOS 13.0+Beta
UIKit creates a scene object for each instance of your app's UI that the user or your app requests. Typically, UIKit creates a
UIWindow object instead of a
UIScene object, but you use the methods and properties of this class to access information about a scene.
Every scene object has an associated delegate object, an object that adopts the
UIScene protocol. When the state of the scene changes, the scene object notifies its delegate object and posts appropriate notifications to registered observer objects. Use the delegate object and notifications to respond to changes in the state of the scene. For example, use it to determine when your scene moves to the background.
You do not create scene objects directly. You can programmatically ask UIKit to create a scene object for your app by calling the
request method of
UIApplication. UIKit also creates scenes in response to user interactions. When configuring your app's scene support, specify
UIWindow objects instead of