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

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

The top edge.

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

The leading edge.

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

The bottom edge.

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

The trailing edge.

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

All edges.

### Initializers

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

Creates an edge with the specified raw value.

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

---

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)