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

# NSDirectionalRectEdge

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

```
struct NSDirectionalRectEdge
```

## Topics

### Constants

[`NSDirectionalRectEdgeNone`](/documentation/UIKit/NSDirectionalRectEdge/NSDirectionalRectEdgeNone)

No specified edge.

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

The top edge.

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

The leading edge.

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

The bottom edge.

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

The trailing edge.

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

All edges.

### Initializers

[`init(rawValue:)`](/documentation/UIKit/NSDirectionalRectEdge/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)