---
title: NSWritingDirectionFormatType
framework: uikit
role: symbol
role_heading: Enumeration
path: uikit/nswritingdirectionformattype
---

# NSWritingDirectionFormatType

Constants for the writing direction attribute key.

## Declaration

```swift
enum NSWritingDirectionFormatType
```

## Overview

Overview Use these constants as the values for the writingDirection key in Swift or the NSWritingDirectionAttributeName key in Objective-C. You can use the logical OR operator to combine these constants with NSWritingDirection.leftToRight or NSWritingDirection.rightToLeft when used with the writingDirection key in Swift or the NSWritingDirectionAttributeName key in Objective-C to specify formatting controls defined by the Unicode Bidirectional Algorithm in Unicode Standard Annex #9.

## Topics

### Constants

- [NSWritingDirectionFormatType.embedding](uikit/nswritingdirectionformattype/embedding.md)
- [NSWritingDirectionFormatType.override](uikit/nswritingdirectionformattype/override.md)

### Initializers

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

### Getting text content attributes

- [NSUnderlineStyle](uikit/nsunderlinestyle.md)
