---
title: NSTextWritingDirection
framework: uikit
role: symbol
role_heading: Enumeration
path: uikit/nstextwritingdirection
---

# NSTextWritingDirection

Options for specifying text-writing direction.

## Declaration

```swift
enum NSTextWritingDirection
```

## Overview

Overview You can use the logical OR operator to combine these constants with NSWritingDirection.leftToRight or NSWritingDirection.rightToLeft when used with writingDirection to specify formatting controls defined by the Unicode Bidirectional Algorithm in Unicode Standard Annex #9.

## Topics

### Constants

- [NSTextWritingDirection.embedding](uikit/nstextwritingdirection/embedding.md)
- [NSTextWritingDirection.override](uikit/nstextwritingdirection/override.md)

### Initializers

- [init(rawValue:)](uikit/nstextwritingdirection/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)
