---
title: UITextDirection
framework: uikit
role: symbol
role_heading: Structure
path: uikit/uitextdirection
---

# UITextDirection

The direction of the text.

## Declaration

```swift
struct UITextDirection
```

## Overview

Overview This parameter is used in methods declared by the UITextInputTokenizer protocol. This general direction type subsumes constants of the UITextStorageDirection and UITextLayoutDirection types.

## Topics

### Text direction types

- [layout(_:)](uikit/uitextdirection/layout(_:).md)
- [storage(_:)](uikit/uitextdirection/storage(_:).md)

### Initializers

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

### Constants

- [UITextStorageDirection](uikit/uitextstoragedirection.md)
- [UITextLayoutDirection](uikit/uitextlayoutdirection.md)
