---
title: UITextStorageDirection
framework: uikit
role: symbol
role_heading: Enumeration
path: uikit/uitextstoragedirection
---

# UITextStorageDirection

The direction of text storage.

## Declaration

```swift
enum UITextStorageDirection
```

## Overview

Overview Constants of this type are used as arguments to the baseWritingDirection(for:in:) and textStyling(at:in:) methods.

## Topics

### Constants

- [UITextStorageDirection.forward](uikit/uitextstoragedirection/forward.md)
- [UITextStorageDirection.backward](uikit/uitextstoragedirection/backward.md)

### Initializers

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

- [UITextDirection](uikit/uitextdirection.md)
- [UITextLayoutDirection](uikit/uitextlayoutdirection.md)
