---
title: destructive
framework: swiftui
role: symbol
role_heading: Type Property
path: swiftui/dismissbehavior/destructive
---

# destructive

The destructive dismiss behavior.

## Declaration

```swift
static let destructive: DismissBehavior
```

## Discussion

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.

## See Also

### Getting behaviors

- [interactive](swiftui/dismissbehavior/interactive.md)
