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

# confirmationAction

A placement for confirmation actions in a modal interface.

```
static let confirmationAction: ToolbarItemPlacement
```

## Discussion

Use confirmation actions to receive user confirmation of a
particular action. An example of a confirmation action would be
an action with the label “Add” to add a new event to the calendar.

In macOS and in Mac Catalyst apps, the system places
`confirmationAction` items on the trailing edge
in the trailing-most position of the sheet and gain the apps accent
color as a background color.

In iOS, iPadOS, and tvOS, the system places `confirmationAction` items
in the same location as a [`primaryAction`](/documentation/SwiftUI/ToolbarItemPlacement/primaryAction)
placement.

In watchOS, the system places `confirmationAction` 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)