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

# windowMinimizeBehavior(_:)

Configures the minimize functionality for the window enclosing self.

## Declaration

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

```

## Parameters

- `behavior`: The resize behavior.

## Discussion

Discussion On macOS, windows which support being minimized will move into the Dock when the minimize button is clicked, or the corresponding menu item is selected. By default, the window minimize functionality is determined by the scene, as well as any modifiers applied to it. You can use this modifier to override the default behavior. For example, you can create a custom “About” window which disables the minimize functionality: 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)
- [windowResizeBehavior(_:)](swiftui/view/windowresizebehavior(_:).md)
- [windowBackgroundDragBehavior(_:)](swiftui/scene/windowbackgrounddragbehavior(_:).md)
- [allowsWindowActivationEvents()](swiftui/view/allowswindowactivationevents().md)
- [allowsWindowActivationEvents(_:)](swiftui/view/allowswindowactivationevents(_:).md)
