---
title: level
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nswindow/level-swift.property
---

# level

The window level of the window.

## Declaration

```swift
var level: NSWindow.Level { get set }
```

## Discussion

Discussion See Window Levels for a list of possible values. Each level in the list groups windows within it in front of those in all preceding groups. Floating windows, for example, appear in front of all normal-level windows. The constant NSTornOffMenuWindowLevel is preferable to its synonym, NSSubmenuWindowLevel.

## See Also

### Managing Window Layers

- [orderOut(_:)](appkit/nswindow/orderout(_:).md)
- [orderBack(_:)](appkit/nswindow/orderback(_:).md)
- [orderFront(_:)](appkit/nswindow/orderfront(_:).md)
- [orderFrontRegardless()](appkit/nswindow/orderfrontregardless().md)
- [order(_:relativeTo:)](appkit/nswindow/order(_:relativeto:).md)
- [NSWindow.Level](appkit/nswindow/level-swift.struct.md)
