---
title: NSTextSelectionNavigation.WritingDirection
framework: uikit
role: symbol
role_heading: Enumeration
path: uikit/nstextselectionnavigation/writingdirection
---

# NSTextSelectionNavigation.WritingDirection

Values that describe the writing direction inside a text selection.

## Declaration

```swift
enum WritingDirection
```

## Topics

### Writing directions

- [NSTextSelectionNavigation.WritingDirection.leftToRight](uikit/nstextselectionnavigation/writingdirection/lefttoright.md)
- [NSTextSelectionNavigation.WritingDirection.rightToLeft](uikit/nstextselectionnavigation/writingdirection/righttoleft.md)

### Initializers

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

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Changing the characteristics of the selection

- [baseWritingDirection(at:)](uikit/nstextselectiondatasource/basewritingdirection(at:).md)
- [textLayoutOrientation(at:)](uikit/nstextselectiondatasource/textlayoutorientation(at:).md)
- [NSTextSelectionNavigation.LayoutOrientation](uikit/nstextselectionnavigation/layoutorientation.md)
