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

# windowResizeBehavior(_:)

Configures the resize functionality for the window enclosing self.

## Declaration

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

```

## Parameters

- `behavior`: The resize behavior.

## Discussion

Discussion By default, the window resizability functionality is determined by the scene, as well as any modifiers applied to it. Additionally, when using the windowResizability(_:) modifier, the minimum and maximum size of the window’s contents will also determine the resizability behavior. You can use this modifier to override the default behavior. For example, you can create a custom “About” window which only allows for dismissal: struct MyApp: App {     var body: some Scene {         ...         Window("About MyApp", id: "about") {             AboutView()                 .windowResizeBehavior(.disabled)                 .windowMinimizeBehavior(.disabled)         }         .windowResizability(.contentSize)     } }

## See Also

### Managing window behavior

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