<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIControl/ContentHorizontalAlignment-swift.enum",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@E@UIControlContentHorizontalAlignment"
  },
  "title" : "UIControl.ContentHorizontalAlignment"
}
-->

# UIControl.ContentHorizontalAlignment

The horizontal alignment of content (text and images) within a control.

```
enum ContentHorizontalAlignment
```

## Overview

You use these constants as the value of the [`contentHorizontalAlignment`](/documentation/UIKit/UIControl/contentHorizontalAlignment-swift.property) property.

## Topics

### Constants

[`UIControlContentHorizontalAlignmentCenter`](/documentation/UIKit/UIControl/ContentHorizontalAlignment-swift.enum/center)

Aligns the content horizontally in the center of the control.

[`UIControlContentHorizontalAlignmentLeft`](/documentation/UIKit/UIControl/ContentHorizontalAlignment-swift.enum/left)

Aligns the content horizontally from the left of the control (the default).

[`UIControlContentHorizontalAlignmentRight`](/documentation/UIKit/UIControl/ContentHorizontalAlignment-swift.enum/right)

Aligns the content horizontally from the right of the control.

[`UIControlContentHorizontalAlignmentFill`](/documentation/UIKit/UIControl/ContentHorizontalAlignment-swift.enum/fill)

Aligns the content horizontally to fill the content rectangles; text may wrap and images may be stretched.

[`UIControlContentHorizontalAlignmentLeading`](/documentation/UIKit/UIControl/ContentHorizontalAlignment-swift.enum/leading)

Aligns the content horizontally from the leading edge of the control.

[`UIControlContentHorizontalAlignmentTrailing`](/documentation/UIKit/UIControl/ContentHorizontalAlignment-swift.enum/trailing)

Aligns the content horizontally from the trailing edge of the control.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Hashable`](/documentation/Swift/Hashable)

[`Sendable`](/documentation/Swift/Sendable)

[`Equatable`](/documentation/Swift/Equatable)

---

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)