Additional methods that you use to manage app-specific tasks occurring in a scene.
- iOS 13.0+
- Mac Catalyst 13.0+
- tvOS 13.0+
UIWindow object to manage the life cycle of one instance of your app's user interface. The window scene delegate conforms to the
UIScene property, and you use it to receive notifications when its scene connects to the app, enters the foreground, and so on. You also use it to respond to changes in the underlying environment of the scene. For example, if the user resizes a scene, use your delegate to make any needed changes to your content to accommodate the new size.
Do not create
UIWindow objects directly. Instead, specify the name of your delegate class as part of the configuration data for your scene. You can specify this information in your app's
Info file, or in the
UIScene object you return from your app delegate's
application: method. For more information about how to configure scenes, see Specifying the Scenes Your App Supports.