<!--
{
  "availability" : [
    "iOS: 13.4.0 -",
    "iPadOS: 13.4.0 -",
    "tvOS: 13.4.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIAxis",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@E@UIAxis"
  },
  "title" : "UIAxis"
}
-->

# UIAxis

A structure that specifies the layout axes.

```
struct UIAxis
```

## Topics

### Constants

[`UIAxisHorizontal`](/documentation/UIKit/UIAxis/horizontal)

A value that represents the horizontal axis.

[`UIAxisVertical`](/documentation/UIKit/UIAxis/vertical)

A value that represents the vertical axis.

[`UIAxisBoth`](/documentation/UIKit/UIAxis/both)

A value that represents both axes.

### Initializers

[`init(rawValue:)`](/documentation/UIKit/UIAxis/init(rawValue:))

Creates an axis with the specified raw value.

[`UIAxisNeither`](/documentation/UIKit/UIAxis/UIAxisNeither)

A value that represents neither axis.

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

---

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)