How bars compress when different types of toolbars are placed together
and space is constrained.
Use this with the `View.toolbarVerticalCompressionBehavior(_:)` modifier to
control which items compress first when space is limited.
Members (3)
get · iOS 27.1+
prefersToolbarItems
TypeScript
static get prefersToolbarItems(): ToolbarVerticalCompressionBehavior
Swift declaration
static let prefersToolbarItems: ToolbarVerticalCompressionBehavior
A compression behavior that prefers keeping toolbar items visible.
The tab bar will compress before toolbar items when space is
constrained.
get · iOS 27.1+
prefersTabBar
TypeScript
static get prefersTabBar(): ToolbarVerticalCompressionBehavior
Swift declaration
static let prefersTabBar: ToolbarVerticalCompressionBehavior
A compression behavior that prefers keeping the tab bar visible.
Toolbar items will compress before tab bar items when space is
constrained.
get · iOS 27.1+
automatic
TypeScript
static get automatic(): ToolbarVerticalCompressionBehavior
Swift declaration
static let automatic: ToolbarVerticalCompressionBehavior
The automatic compression behavior.
On iOS, this behavior prefers the tab bar.