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

# cancellationAction

A placement for cancellation actions in a modal interface.

```
static let cancellationAction: ToolbarItemPlacement
```

## Discussion

Cancellation actions dismiss the modal interface without taking any
action, usually by tapping or clicking a Cancel button.

In macOS and in Mac Catalyst apps, the system places
`cancellationAction` items on the trailing edge of the sheet but
places them before any [`confirmationAction`](/documentation/SwiftUI/ToolbarItemPlacement/confirmationAction) items.

In iOS, iPadOS, tvOS, and watchOS, the system places
`cancellationAction` items on the leading 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)