Structure

ToolbarItemPlacement

A structure that defines the placement of a toolbar item.

Declaration 宣言

struct ToolbarItemPlacement

Overview 概要

There are two types of placements:

  • Semantic placements, such as principal and navigation, denote the intent of the item being added. SwiftUI determines the appropriate placement for the item based on this intent and its surrounding context, like the current platform.

  • Positional placements, such as navigationBarLeading, denote a precise placement for the item, usually for a particular platform.

In compact horizontal size classes, the system limits both the leading and the trailing positions of the navigation bar to a single item each.

Topics 話題

Getting Semantic Placement

Getting Placement for Specific Actions

Getting Explicit Placement

See Also 参照

Toolbars