---
title: primaryAction
framework: swiftui
role: symbol
role_heading: Type Property
path: swiftui/toolbaritemplacement/primaryaction
---

# primaryAction

A placement for the primary action.

## Declaration

```swift
static let primaryAction: ToolbarItemPlacement
```

## Discussion

Discussion A primary action is a more frequently used action for the current context. For example, a button the user clicks or taps to compose a new message in a chat app. In macOS and in Mac Catalyst apps, the location for the primary action is the leading edge of the toolbar. In iOS, iPadOS, and tvOS, the location for the primary action is the trailing edge of the navigation bar. In watchOS the system places the primary action beneath the navigation bar; the user reveals the action by scrolling.

## See Also

### Getting placement for specific actions

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