---
title: destructiveAction
framework: swiftui
role: symbol
role_heading: Type Property
path: swiftui/toolbaritemplacement/destructiveaction
---

# destructiveAction

A placement for destructive actions in a modal interface.

## Declaration

```swift
static let destructiveAction: ToolbarItemPlacement
```

## Discussion

Discussion Destructive actions represent the opposite of a confirmation action. For example, a button labeled “Don’t Save” that allows the user to discard unsaved changes to a document before quitting. In macOS and in Mac Catalyst apps, the system places destructiveAction items in the leading edge of the sheet and gives them a special appearance to caution against accidental use. In iOS, tvOS, and watchOS, the system places destructiveAction items in the trailing edge of the navigation bar.

## See Also

### Getting placement for specific actions

- [primaryAction](swiftui/toolbaritemplacement/primaryaction.md)
- [secondaryAction](swiftui/toolbaritemplacement/secondaryaction.md)
- [confirmationAction](swiftui/toolbaritemplacement/confirmationaction.md)
- [cancellationAction](swiftui/toolbaritemplacement/cancellationaction.md)
- [navigation](swiftui/toolbaritemplacement/navigation.md)
