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
Bringing robust navigation structure to your SwiftUI appMigrating to new navigation typesNavigationSplitViewnavigationSplitViewStyle(_:)navigationSplitViewColumnWidth(_:)navigationSplitViewColumnWidth(min:ideal:max:)NavigationSplitViewVisibilityNavigationLink
Stacking views in one column
NavigationStackNavigationPathnavigationDestination(for:destination:)navigationDestination(isPresented:destination:)navigationDestination(item:destination:)
Managing column collapse
Setting titles for navigation content
Configuring the navigation bar
Configuring the sidebar
Presenting views in tabs
Configuring a tab bar
defaultAdaptableTabBarPlacement(_:)tabViewSidebarHeader(content:)tabViewSidebarFooter(content:)tabViewSidebarBottomBar(content:)AdaptableTabBarPlacementtabBarPlacementTabBarPlacementisTabBarShowingSectionsTabBarMinimizeBehaviorTabViewBottomAccessoryPlacement