---
title: writingDirectionBased
framework: swiftui
role: symbol
role_heading: Type Property
path: swiftui/text/alignmentstrategy/writingdirectionbased
---

# writingDirectionBased

The alignment following the writing direction of the same paragraph.

## Declaration

```swift
static let writingDirectionBased: Text.AlignmentStrategy
```

## Discussion

Discussion When multilineTextAlignment is TextAlignment.leading, alignment follows the writing direction. If the value is TextAlignment.trailing alignment is the opposite of the writing direction and finally, a TextAlignment.center value always results in centered alignment.
