titleAlignment
The preferred alignment of the navigation bar’s title.
Declaration
var titleAlignment: UINavigationItem.TitleAlignment { get set }Discussion
The navigation bar resolves the alignment of its title automatically based on context, and the navigation item’s style. Use this property to override the system default.
The alignment the bar actually used is reported by UITraitCollection.navigationTitleAlignment.
Defaults to UINavigationItemTitleAlignmentAutomatic.