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

# windowFullScreenBehavior(_:)

Configures the full screen functionality for the window enclosing `self`.

```
nonisolated func windowFullScreenBehavior(_ behavior: WindowInteractionBehavior) -> some View
```

## Parameters

`behavior`

The full screen behavior.

## Discussion

By default, the window full screen functionality is determined by the
scene, as well as any modifiers applied to it. Additionally, when using
the [`windowResizability(_:)`](/documentation/SwiftUI/Scene/windowResizability(_:)) modifier, the maximum size of the
window’s contents will also determine whether a window can be made
full screen.

You can use this modifier to override the default behavior.

For example, you can specify that a window cannot enter full screen
mode:

```
struct MyApp: App {
    var body: some Scene {
        WindowGroup {
            ContentView()
                .windowFullScreenBehavior(.disabled)
        }
    }
}
```

---

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)