---
title: "layout(_:)"
framework: uikit
role: symbol
role_heading: Type Method
path: "uikit/uitextdirection/layout(_:)"
---

# layout(_:)

Specifies the direction of text layout.

## Declaration

```swift
static func layout(_ direction: UITextLayoutDirection) -> UITextDirection
```

## See Also

### Text direction types

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