selectionAffinity
The preferred direction of selection.
Declaration
var selectionAffinity: NSSelectionAffinity { get }Discussion
Selection affinity determines whether, for example, the insertion point appears after the last character on a line or before the first character on the following line in cases where text wraps across line boundaries.
See Also
Managing the selection
selectedRangessetSelectedRange(_:)setSelectedRange(_:affinity:stillSelecting:)setSelectedRanges(_:affinity:stillSelecting:)selectionGranularityinsertionPointColorupdateInsertionPointStateAndRestartTimer(_:)selectedTextAttributesmarkedTextAttributeslinkTextAttributescharacterIndexForInsertion(at:)updateCandidates()