Contents

Navigation

Enable people to move between different parts of your app’s view hierarchy within a scene.

Overview

Use navigation containers to provide structure to your app’s user interface, enabling people to easily move among the parts of your app.

[Image]

For example, people can move forward and backward through a stack of views using a NavigationStack, or choose which view to display from a tab bar using a TabView.

Configure navigation containers by adding view modifiers like navigationSplitViewStyle(_:) to the container. Use other modifiers on the views inside the container to affect the container’s behavior when showing that view. For example, you can use navigationTitle(_:) on a view to provide a toolbar title to display when showing that view.

Topics

Essentials

Presenting views in columns

Stacking views in one column

Managing column collapse

Setting titles for navigation content

Configuring the navigation bar

Configuring the sidebar

Presenting views in tabs

Configuring a tab bar

Configuring a tab

Enabling tab customization

Displaying views in multiple panes

Deprecated Types

See Also

App structure