Contents

textSelectionAffinity

A representation of the direction or association of a selection or cursor relative to a text character. This concept becomes much more prominent when dealing with bidirectional text (text that contains both LTR and RTL scripts, like English and Arabic combined).

Declaration

var textSelectionAffinity: TextSelectionAffinity { get set }

Discussion

You can configure the selection affinity on a given hierarchy by using the textSelectionAffinity(_:) modifier.

See Also

Selecting text