The positioning of windows relative to each other.


struct Level


The stacking of levels takes precedence over the stacking of windows within each level. That is, even the bottom window in a level obscures the top window of the next level down. Levels are listed in order from lowest to highest.


Window Levels

static let statusBar: UIWindow.Level

The level for a status window.

static let alert: UIWindow.Level

The level for an alert view.


See Also

Configuring the Window

var rootViewController: UIViewController?

The root view controller for the window.

var windowLevel: UIWindow.Level

The position of the window in the z-axis.

var screen: UIScreen

The screen on which the window is displayed.

var canResizeToFitContent: Bool

A Boolean value that indicates whether the window's constraint-based content determines its size.


Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software