markedTextRange
The range of currently marked text in a document.
Declaration
var markedTextRange: UITextRange? { get }Discussion
If there is no marked text, the value of the property is nil. Marked text is provisionally inserted text that requires user confirmation; it occurs in multistage text input. The current selection, which can be a caret or an extended range, always occurs within the marked text.