<!--
{
  "availability" : [
    "iOS: 2.0.0 - 6.0.0",
    "iPadOS: 2.0.0 - 6.0.0",
    "macCatalyst: 13.1.0 - 13.1.0",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITextAlignment",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@E@UITextAlignment"
  },
  "title" : "UITextAlignment"
}
-->

# UITextAlignment

Options for aligning text horizontally.

```
enum UITextAlignment : NSInteger;
```

## Topics

### Deprecated constants

[`UITextAlignmentLeft`](/documentation/UIKit/UITextAlignment/UITextAlignmentLeft)

Align text along the left edge.

[`UITextAlignmentCenter`](/documentation/UIKit/UITextAlignment/UITextAlignmentCenter)

Align text equally along both sides of the center line.

[`UITextAlignmentRight`](/documentation/UIKit/UITextAlignment/UITextAlignmentRight)

Align text along the right edge.



---

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)