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.
Platform Compatibility
iOS 27.2+ iPadOS 27.2+
Tags
SwiftUI Code
NavigationStack {
Text("Foo")
.navigationTitle("Bar")
.toolbarTitleAlignment(.center)
.toolbarTitleDisplayMode(.inline)
}Found an issue or have a suggestion?
Created: October 15, 2026Updated: November 1, 2026