<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/WindowManagerRole/automatic",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI17WindowManagerRoleV9automaticACvpZ"
  },
  "title" : "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.

```
static let automatic: WindowManagerRole
```

## Discussion

On macOS, [`WindowGroup`](/documentation/SwiftUI/WindowGroup) and [`DocumentGroup`](/documentation/SwiftUI/DocumentGroup) scenes will use the
`principal` role. [`Window`](/documentation/SwiftUI/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`](/documentation/SwiftUI/Settings)
will use the `associated` role.

---

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)