Type Property 型プロパティ

primaryAction

The item represents a primary action.

Declaration 宣言

static let primaryAction: ToolbarItemPlacement

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