Contents

writingDirectionBased

The alignment following the writing direction of the same paragraph.

Declaration

static let writingDirectionBased: Text.AlignmentStrategy

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.