<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITraitCollection/userInterfaceLevel",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UITraitCollection(py)userInterfaceLevel"
  },
  "title" : "userInterfaceLevel"
}
-->

# userInterfaceLevel

The elevation level of the interface.

```
var userInterfaceLevel: UIUserInterfaceLevel { get }
```

## Discussion

Levels create a visual separation between different parts of your UI. Window content typically appears at the [`UIUserInterfaceLevel.base`](/documentation/UIKit/UIUserInterfaceLevel/base) level. When you want parts of your UI to stand out from the underlying background, assign the [`UIUserInterfaceLevel.elevated`](/documentation/UIKit/UIUserInterfaceLevel/elevated) level to them. For example, the system assigns the [`UIUserInterfaceLevel.elevated`](/documentation/UIKit/UIUserInterfaceLevel/elevated) level to alerts and popovers.

---

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)