<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/ToolbarItemPlacement/destructiveAction",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI20ToolbarItemPlacementV17destructiveActionACvpZ"
  },
  "title" : "destructiveAction"
}
-->

# destructiveAction

A placement for destructive actions in a modal interface.

```
static let destructiveAction: ToolbarItemPlacement
```

## 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.

---

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)