---
title: WindowInteractionBehavior
framework: swiftui
role: symbol
role_heading: Structure
path: swiftui/windowinteractionbehavior
---

# WindowInteractionBehavior

Options for enabling and disabling window interaction behaviors.

## Declaration

```swift
struct WindowInteractionBehavior
```

## Overview

Overview Use values of this type in conjunction with the following view and scene modifiers to adjust the supported functionality for the window: windowDismissBehavior(_:) windowMinimizeBehavior(_:) windowFullScreenBehavior(_:) windowResizeBehavior(_:) 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

- [automatic](swiftui/windowinteractionbehavior/automatic.md)
- [disabled](swiftui/windowinteractionbehavior/disabled.md)
- [enabled](swiftui/windowinteractionbehavior/enabled.md)

## Relationships

### Conforms To

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Managing window behavior

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