<!--
{
  "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/destructive",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI15DismissBehaviorV11destructiveACvpZ"
  },
  "title" : "destructive"
}
-->

# destructive

The destructive dismiss behavior.

```
static let destructive: DismissBehavior
```

## Discussion

Use this behavior when you want to dismiss a window regardless of
any conditions that would normally prevent the dismissal. Dismissing
windows in this matter may result in loss of state.

On macOS, this behavior will cause windows to dismiss even when they are
currently showing a modal presentation, such as a sheet or alert.
Additionally, a document window will not show the save dialog when
there are unsaved changes and the window is dismissed with this
behavior.

On iOS, this behavior behaves the same as `interactive`.

---

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)