<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITextStorageDirection",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@E@UITextStorageDirection"
  },
  "title" : "UITextStorageDirection"
}
-->

# UITextStorageDirection

The direction of text storage.

```
enum UITextStorageDirection
```

## Overview

Constants of this type are used as arguments to the [`baseWritingDirection(for:in:)`](/documentation/UIKit/UITextInput/baseWritingDirection(for:in:)) and [`textStyling(at:in:)`](/documentation/UIKit/UITextInput/textStyling(at:in:)) methods.

## Topics

### Constants

[`UITextStorageDirection.forward`](/documentation/UIKit/UITextStorageDirection/forward)

Storage of the text in a forward direction.

[`UITextStorageDirection.backward`](/documentation/UIKit/UITextStorageDirection/backward)

Storage of the text in a backward direction.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)