<!--
{
  "availability" : [
    "macOS: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/WindowInteractionBehavior",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI25WindowInteractionBehaviorV"
  },
  "title" : "WindowInteractionBehavior"
}
-->

# WindowInteractionBehavior

Options for enabling and disabling window interaction behaviors.

```
struct WindowInteractionBehavior
```

## Overview

Use values of this type in conjunction with the following view and scene
modifiers to adjust the supported functionality for the window:

- [`windowDismissBehavior(_:)`](/documentation/SwiftUI/View/windowDismissBehavior(_:))
- [`windowMinimizeBehavior(_:)`](/documentation/SwiftUI/View/windowMinimizeBehavior(_:))
- [`windowFullScreenBehavior(_:)`](/documentation/SwiftUI/View/windowFullScreenBehavior(_:))
- [`windowResizeBehavior(_:)`](/documentation/SwiftUI/View/windowResizeBehavior(_:))
- [`windowBackgroundDragBehavior(_:)`](/documentation/SwiftUI/Scene/windowBackgroundDragBehavior(_:))

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()
                .windowMinimizeBehavior(.disabled)
                .windowResizeBehavior(.disabled)
        }
        .windowResizability(.contentSize)
    }
}
```

## Topics

### Type Properties

[`static let automatic: WindowInteractionBehavior`](/documentation/SwiftUI/WindowInteractionBehavior/automatic)

The automatic behavior. The associated window behavior will be enabled
or disabled depending on the configuration of the enclosing `Scene`.

[`static let disabled: WindowInteractionBehavior`](/documentation/SwiftUI/WindowInteractionBehavior/disabled)

The disabled behavior. The associated window interaction behavior will
be disabled.

[`static let enabled: WindowInteractionBehavior`](/documentation/SwiftUI/WindowInteractionBehavior/enabled)

The enabled behavior. The associated window interaction behavior will be
enabled.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

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)