---
title: "windowFullScreenBehavior(_:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/view/windowfullscreenbehavior(_:)"
---

# windowFullScreenBehavior(_:)

Configures the full screen functionality for the window enclosing self.

## Declaration

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

```

## Parameters

- `behavior`: The full screen behavior.

## Discussion

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(_:) 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)         }     } }

## See Also

### Managing window behavior

- [WindowManagerRole](swiftui/windowmanagerrole.md)
- [windowManagerRole(_:)](swiftui/scene/windowmanagerrole(_:).md)
- [WindowInteractionBehavior](swiftui/windowinteractionbehavior.md)
- [windowDismissBehavior(_:)](swiftui/view/windowdismissbehavior(_:).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)
