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

# UIDirectionalRectEdge

Constants that specify an edge or a set of edges, taking the user interface layout direction into account.

```
struct UIDirectionalRectEdge
```

## Topics

### Constants

[`UIDirectionalRectEdgeNone`](/documentation/UIKit/UIDirectionalRectEdge/UIDirectionalRectEdgeNone)

No specified edge.

[`UIDirectionalRectEdgeTop`](/documentation/UIKit/UIDirectionalRectEdge/top)

The top edge.

[`UIDirectionalRectEdgeLeading`](/documentation/UIKit/UIDirectionalRectEdge/leading)

The leading edge.

[`UIDirectionalRectEdgeBottom`](/documentation/UIKit/UIDirectionalRectEdge/bottom)

The bottom edge.

[`UIDirectionalRectEdgeTrailing`](/documentation/UIKit/UIDirectionalRectEdge/trailing)

The trailing edge.

[`UIDirectionalRectEdgeAll`](/documentation/UIKit/UIDirectionalRectEdge/all)

All edges.

### Initializers

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

Creates an edge with the specified raw value.

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

---

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)