<!--
{
  "availability" : [
    "iOS: 27.2.0 -",
    "iPadOS: 27.2.0 -",
    "macCatalyst: 27.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UINavigationItem/titleAlignment-swift.property",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UINavigationItem(py)titleAlignment"
  },
  "title" : "titleAlignment"
}
-->

# titleAlignment

The preferred alignment of the navigation bar’s title.

```
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`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)