Instance Method

unmarkText()

Unmark the currently marked text.

Required.

Declaration

func unmarkText()

Discussion

After this method is called, the value of markedTextRange is nil.

See Also

Working with Marked and Selected Text

var selectedTextRange: UITextRange?

The range of selected text in a document.

Required.

var markedTextRange: UITextRange?

The range of text that is currently marked in a document.

Required.

var markedTextStyle: [NSAttributedString.Key : Any]?

A dictionary of attributes that describes how marked text should be drawn.

Required.

func setMarkedText(String?, selectedRange: NSRange)

Insert the provided text and marks it to indicate that it is part of an active input session.

Required.

var selectionAffinity: UITextStorageDirection

The desired location for the insertion point.