affinity(in:)

Return the selection affinity of the selection.

Declaration

func affinity(in text: AttributedString) -> TextSelectionAffinity