<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/DismissBehavior/interactive",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI15DismissBehaviorV11interactiveACvpZ"
  },
  "title" : "interactive"
}
-->

# interactive

The interactive dismiss behavior.

```
static let interactive: DismissBehavior
```

## Discussion

Use this behavior when you want to dismiss a window in a manner that is
similar to the standard system affordances for window dismissal - for
example, when a user clicks the close button.

This is the default behavior on macOS and iOS.

On macOS, dismissing a window using this behavior will not dismiss a
window which is currently showing a modal presentation, such as a sheet
or alert. Additionally, a document window that is dismissed with this
behavior will show the save dialog if there are unsaved changes to the
document.

On iOS, dismissing a window using this behavior will dismiss it
regardless of any modal presentations being shown.

---

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)