Contents

selectedTextRange

The range of selected text in a document.

Declaration

@NSCopying var selectedTextRange: UITextRange? { get set }

Discussion

If the text range has a length, it indicates the currently selected text. If it has zero length, it indicates the caret (insertion point). If the text-range object is nil, it indicates that there is no current selection.

See Also

Related Documentation

Working with marked and selected text