markedTextRange
A range that represents the position of the marked text.
Declaration
var markedTextRange: UITextRange? { get }Discussion
Return nil if no marked text exists.
Marked text represents provisionally inserted text that a person needs to confirm before you commit it to the document. You display marked text with a distinct visual look. The selection needs to reside in market text, if any exists.
When you commit marked text to the document, replace any existing marked text. If no marked text is present, insert the market text into the document at the location of the current selection.