An instance of your app's user interface that manages one or more windows.
- iOS 13.0+Beta
- tvOS 13.0+Beta
UIWindow object manages one instance of your app's UI, including one or more windows that you display from that scene. The scene object manages the display of your windows on the user's device, and the life cycle of that scene as the user interacts with it. When the state of the scene changes, the scene object notifies its delegate object, which is an object that adopts the
UIWindow protocol. The scene also posts appropriate notifications to registered observers. Use those objects to respond to any changes.
Do not create window scene objects directly. Instead, specify that you want a
UIWindow object at configuration time by including the class name for the scene in the scene configuration details of your app's
Info file. You can also specify that class name when creating a
UIScene object in your app delegate's
application(_: method. When the user interacts with your app, the system creates an appropriate scene object based on the configuration data you provided. To create a scene programmatically, call the
request method of