<!--
{
  "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.

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

The top edge.

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

The leading edge.

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

The bottom edge.

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

The trailing edge.

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

All edges.

### Initializers

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

Creates an edge with the specified raw value.



---

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)