---
title: NSDirectionalRectEdge
framework: uikit
role: symbol
role_heading: Structure
path: uikit/nsdirectionalrectedge
---

# NSDirectionalRectEdge

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

## Declaration

```swift
struct NSDirectionalRectEdge
```

## Topics

### Constants

- [top](uikit/nsdirectionalrectedge/top.md)
- [leading](uikit/nsdirectionalrectedge/leading.md)
- [bottom](uikit/nsdirectionalrectedge/bottom.md)
- [trailing](uikit/nsdirectionalrectedge/trailing.md)
- [all](uikit/nsdirectionalrectedge/all.md)

### Initializers

- [init(rawValue:)](uikit/nsdirectionalrectedge/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [OptionSet](swift/optionset.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SetAlgebra](swift/setalgebra.md)

## See Also

### Related types

- [UIOffset](uikit/uioffset.md)
- [UIAxis](uikit/uiaxis.md)
- [UIEdgeInsets](uikit/uiedgeinsets.md)
- [NSDirectionalEdgeInsets](uikit/nsdirectionaledgeinsets.md)
- [NSRectAlignment](uikit/nsrectalignment.md)
- [UIKit macros](uikit/uikit-macros.md)
