---
title: automatic
framework: swiftui
role: symbol
role_heading: Type Property
path: swiftui/windowmanagerrole/automatic
---

# automatic

The automatic role. The type and configuration of the scene will be used to determine how its windows behave in full screen and Stage Manager.

## Declaration

```swift
static let automatic: WindowManagerRole
```

## Discussion

Discussion On macOS, WindowGroup and DocumentGroup scenes will use the principal role. Window scenes will use the principal role when they are specified as the first scene in the app’s definition, and use the associated role otherwise. Settings will use the associated role.
