<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIWindow/Level",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@T@UIWindowLevel"
  },
  "title" : "UIWindow.Level"
}
-->

# UIWindow.Level

The positioning of windows relative to each other.

```
struct Level
```

## Overview

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.

## Topics

### Window levels

[`UIWindowLevelNormal`](/documentation/UIKit/UIWindow/Level/normal)

The default level.

[`UIWindowLevelStatusBar`](/documentation/UIKit/UIWindow/Level/statusBar)

The level for a status window.

[`UIWindowLevelAlert`](/documentation/UIKit/UIWindow/Level/alert)

The level for an alert view.

### Initializers

[`init(_:)`](/documentation/UIKit/UIWindow/Level/init(_:))

Creates a window level structure.

[`init(rawValue:)`](/documentation/UIKit/UIWindow/Level/init(rawValue:))

Creates a window level structure with the specified raw value.

## Relationships

### Conforms To

[`Escapable`](/documentation/Swift/Escapable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Hashable`](/documentation/Swift/Hashable)

[`Comparable`](/documentation/Swift/Comparable)

[`Sendable`](/documentation/Swift/Sendable)

[`Copyable`](/documentation/Swift/Copyable)

[`Equatable`](/documentation/Swift/Equatable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)