Contents

Toolbars

Provide immediate access to frequently used commands and controls.

Overview

The system might present toolbars above or below your app’s content, depending on the platform and the context.

[Image]

Add items to a toolbar by applying the toolbar(content:) view modifier to a view in your app. You can also configure the toolbar using view modifiers. For example, you can set the visibility of a toolbar with the toolbar(_:for:) modifier.

For design guidance, see Toolbars in the Human Interface Guidelines.

Topics

Populating a toolbar

Populating a customizable toolbar

Removing default items

Setting toolbar visibility

Specifying the role of toolbar content

Styling a toolbar

Configuring the toolbar title display mode

Setting the toolbar title menu

Creating an ornament

See Also

App structure