---
title: titleAlignment
framework: UIKit
role: symbol
role_heading: Instance Property
platforms: [iOS 27.2+, iPadOS 27.2+, Mac Catalyst 27.2+]
path: uikit/uinavigationitem/titlealignment-swift.property
---

# titleAlignment

The preferred alignment of the navigation bar’s title.

## Declaration

```swift
var titleAlignment: UINavigationItem.TitleAlignment { get set }
```

## Discussion

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.
