Navigation Subtitle
Configures the view’s subtitle for purposes of navigation, using a localized string
Platform Compatibility
Tags
SwiftUI Code
NavigationStack {
Text("Foo")
.navigationTitle("Foo")
.navigationSubtitle("Bar")
}
Found an issue or have a suggestion?
More Navigation Components
View allToolbar Title Alignment
Sets the preferred alignment of the navigation bar’s title. The navigation bar resolves the alignment of its title automatically based on context, and toolbar roles. Use this modifier to override that resolution.
Preferred Top Column
Controls which column appears on top of the stack when NavigationSplitView collapses into a single stack in certain contexts, such as on iPhone, when iPhone Duo is closed, or on Apple Watch. By default, the sidebar appears on top. In this case, the detail column does instead.
Hide Sidebar Toggle
Removes the sidebar toggle toolbar item a NavigationSplitView adds by default.
Explore Other Components
Browse allCompactProductViewStyle
A style for a product view that’s suitable for layouts with less available space, or for displaying more items in a small amount of space.
InlinePickerStyle
A PickerStyle where each option is displayed inline with other views in the current container.
Button Styles
A type that applies standard interaction behavior and a custom appearance to all buttons within a view hierarchy