ToolbarItemPlacement
A structure that defines the placement of a toolbar item.
StructureiOS 14.0+macOS 11.0+tvOS 14.0+watchOS 7.0+
Declaration
type ToolbarItemPlacement =
| 'automatic'
| 'bottomBar'
| 'cancellationAction'
| 'confirmationAction'
| 'destructiveAction'
| 'keyboard'
| 'largeSubtitle'
| 'largeTitle'
| 'navigation'
| 'primaryAction'
| 'principal'
| 'secondaryAction'
| 'status'
| 'subtitle'
| 'title'
| 'topBarLeading'
| 'topBarPinnedTrailing'
| 'topBarTrailing';Pass a literal, or build one with SwiftUI.ToolbarItemPlacement from import { SwiftUI } from 'swiftui-react-native'.
Type properties
'automatic'SwiftUI.ToolbarItemPlacement.automatic'bottomBar'SwiftUI.ToolbarItemPlacement.bottomBar'cancellationAction'SwiftUI.ToolbarItemPlacement.cancellationAction'confirmationAction'SwiftUI.ToolbarItemPlacement.confirmationAction'destructiveAction'SwiftUI.ToolbarItemPlacement.destructiveAction'keyboard'SwiftUI.ToolbarItemPlacement.keyboard'largeSubtitle'SwiftUI.ToolbarItemPlacement.largeSubtitle'largeTitle'SwiftUI.ToolbarItemPlacement.largeTitle'primaryAction'SwiftUI.ToolbarItemPlacement.primaryAction'principal'SwiftUI.ToolbarItemPlacement.principal'secondaryAction'SwiftUI.ToolbarItemPlacement.secondaryAction'status'SwiftUI.ToolbarItemPlacement.status'subtitle'SwiftUI.ToolbarItemPlacement.subtitle'title'SwiftUI.ToolbarItemPlacement.title'topBarLeading'SwiftUI.ToolbarItemPlacement.topBarLeading'topBarPinnedTrailing'SwiftUI.ToolbarItemPlacement.topBarPinnedTrailing'topBarTrailing'SwiftUI.ToolbarItemPlacement.topBarTrailing
Used by
- DefaultToolbarItemA toolbar item that represents a system component.
- ToolbarItemA model that represents an item which can be placed in the toolbar or navigation bar.
- ToolbarItemGroupA model that represents a group of ToolbarItems which can be placed in the toolbar or navigation bar.
- ToolbarSpacerA standard space item in toolbars.
See also
More in Navigation.
- AdaptableTabBarPlacementA placement for tabs in a tab view using the adaptable sidebar style.
- AutomaticNavigationTransitionA style that automatically chooses the appropriate presentation transition for the current context.
- ContentToolbarPlacementA region of the interface that hosts its own toolbar content.
- CrossFadeNavigationTransitionA navigation transition that cross-fades between the appearing view and the disappearing view.
- DismissSearchActionAn action that can end a search interaction.
- NavigationBarItemTitleDisplayModeA style for displaying the title of a navigation bar.
- NavigationPathA type-erased list of data representing the content of a navigation stack.
- NavigationPathChainNavigationPath with chained calls: SwiftUI.NavigationPath.append(...).
- NavigationPathCodableRepresentationA serializable representation of a navigation path.
- NavigationSplitViewColumnA view that represents a column in a navigation split view.
- NavigationSplitViewVisibilityThe visibility of the leading columns in a navigation split view.
- NavigationTransitionA type that defines the transition to use when navigating to a view.