---
title: WindowManagerRole
framework: swiftui
role: symbol
role_heading: Structure
path: swiftui/windowmanagerrole
---

# WindowManagerRole

Options for defining how a scene’s windows behave when used within a managed window context, such as full screen mode and Stage Manager.

## Declaration

```swift
struct WindowManagerRole
```

## Overview

Overview Use values of this type in conjunction with the windowManagerRole(_:) modifier to override the default system behavior. For example, you can specify that a secondary Window scene should use the principal role for full screen and Stage Manager: struct MyApp: App {     var body: some Scene {         WindowGroup {             ContentView()         }         Window("Organizer", id: "organizer") {             OrganizerView()         }         .windowManagerRole(.principal)     } }

## Topics

### Type Properties

- [associated](swiftui/windowmanagerrole/associated.md)
- [automatic](swiftui/windowmanagerrole/automatic.md)
- [principal](swiftui/windowmanagerrole/principal.md)

## Relationships

### Conforms To

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Managing window behavior

- [windowManagerRole(_:)](swiftui/scene/windowmanagerrole(_:).md)
- [WindowInteractionBehavior](swiftui/windowinteractionbehavior.md)
- [windowDismissBehavior(_:)](swiftui/view/windowdismissbehavior(_:).md)
- [windowFullScreenBehavior(_:)](swiftui/view/windowfullscreenbehavior(_:).md)
- [windowMinimizeBehavior(_:)](swiftui/view/windowminimizebehavior(_:).md)
- [windowResizeBehavior(_:)](swiftui/view/windowresizebehavior(_:).md)
- [windowBackgroundDragBehavior(_:)](swiftui/scene/windowbackgrounddragbehavior(_:).md)
- [allowsWindowActivationEvents()](swiftui/view/allowswindowactivationevents().md)
- [allowsWindowActivationEvents(_:)](swiftui/view/allowswindowactivationevents(_:).md)
