---
title: confirmationAction
framework: swiftui
role: symbol
role_heading: Type Property
path: swiftui/toolbaritemplacement/confirmationaction
---

# confirmationAction

A placement for confirmation actions in a modal interface.

## Declaration

```swift
static let confirmationAction: ToolbarItemPlacement
```

## Discussion

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 placement. In watchOS, the system places confirmationAction 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)
- [cancellationAction](swiftui/toolbaritemplacement/cancellationaction.md)
- [destructiveAction](swiftui/toolbaritemplacement/destructiveaction.md)
- [navigation](swiftui/toolbaritemplacement/navigation.md)
