<!--
{
  "availability" : [
    "iOS: 27.2.0 -",
    "iPadOS: 27.2.0 -",
    "macCatalyst: 27.2.0 -",
    "tvOS: 27.2.0 -",
    "visionOS: 27.2.0 -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITraitNavigationTitleAlignment-c.class",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UITraitNavigationTitleAlignment"
  },
  "title" : "UITraitNavigationTitleAlignment"
}
-->

# UITraitNavigationTitleAlignment

A trait that reports the alignment the navigation bar resolved for its title.

```
@interface UITraitNavigationTitleAlignment : NSObject
```

## Overview

Read this trait from a custom navigation bar title view to discover the alignment the system
chose, so the view can lay out its content to match. When the system has resolved an alignment
the trait reports it, Leading or Center; otherwise it is Automatic.

Use the trait to align content within the size your view already reported, not to decide that
size. Overriding this trait’s value will not change the actual alignment in the navigation bar.
That is controlled by `UINavigationItem.titleAlignment`.

## Relationships

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

### Conforms To

[`UINSIntegerTraitDefinition`](/documentation/UIKit/UINSIntegerTraitDefinition)

---

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)