iPad SwiftUI layouts
Explore SwiftUI APIs, components, and modifiers with interactive iPad previews, Swift code, and Apple documentation.
25elements
Navigation
Toolbar 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.
Explore Toolbar Title Alignment on iPad in portrait and landscape, with SwiftUI code and Apple API documentation.
SwiftUI code
NavigationStack {
Text("Foo")
.navigationTitle("Bar")
.toolbarTitleAlignment(.center)
.toolbarTitleDisplayMode(.inline)
}Compatibility
iOS 27.2+ iPadOS 27.2+
Tags
Found an issue or have a suggestion?
All variants
Every available iPad screenshot for Toolbar Title Alignment.