<!--
{
  "availability" : [
    "macOS: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/Scene/windowLevel(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI5ScenePAAE11windowLevelyQrAA06WindowE0VF"
  },
  "title" : "windowLevel(_:)"
}
-->

# windowLevel(_:)

Sets the window level of this scene.

```
nonisolated func windowLevel(_ level: WindowLevel) -> some Scene
```

## Parameters

`level`

The desired window level

## Discussion

```
Window("Utility Window", id: "...") {
    UtilityContent()
}
.windowLevel(.floating)
```

---

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)