Skip to main content
These iOS-only modifiers manage system toolbars — the navigation bar, tab bar, and bottom bar — typically inside a NavigationStack. Use toolbar to populate items and toolbarVisibility to show or hide whole bars. Pair toolbar with ToolbarItem for individually-placed items or ToolbarItemGroup when several items share a placement.

toolbar

Populates the toolbar with items, typically used inside a NavigationStack.
content
ToolbarItem | ToolbarItemGroup | Group | (ToolbarItem | ToolbarItemGroup)[]
required
The toolbar content. Can be a single item, a group, or an array of items.
Single toolbar item
Multiple toolbar items
Toolbar item group
Using Group for mixed placements
In a NavigationStack
Typically used inside a NavigationStack to place items in the navigation bar. Use ToolbarItem for individually-placed items and ToolbarItemGroup when multiple items share the same placement.

toolbarVisibility

Controls the visibility of system toolbars.
visibility
"visible" | "hidden" | "automatic"
required
Whether the toolbar is visible, hidden, or determined automatically by the system.
bars
ToolbarBarPlacement | ToolbarBarPlacement[]
Which toolbars to affect (e.g., "navigationBar", "tabBar", "bottomBar"). When omitted, applies to all toolbars.
Hide navigation bar
Hide tab bar
Hide all toolbars
Hide multiple specific bars

See also