---
title: windowLevel
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiwindow/windowlevel
---

# windowLevel

The position of the window in the z-axis.

## Declaration

```swift
var windowLevel: UIWindow.Level { get set }
```

## Discussion

Discussion Window levels provide a relative grouping of windows along the z-axis. All windows assigned to the same window level appear in front of (or behind) all windows assigned to a different window level. The ordering of windows within a given window level is not guaranteed. The default value of this property is normal. For a list of other possible window levels, see UIWindow.Level.

## See Also

### Configuring the window

- [rootViewController](uikit/uiwindow/rootviewcontroller.md)
- [UIWindow.Level](uikit/uiwindow/level.md)
- [canResizeToFitContent](uikit/uiwindow/canresizetofitcontent.md)
- [screen](uikit/uiwindow/screen.md)
