Instance Property

markedTextStyle

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

Required.

Declaration

var markedTextStyle: [NSAttributedString.Key : Any]? { get set }

Discussion

Marked text requires a unique visual treatment when displayed to users. See Style Dictionary Keys for descriptions of the valid keys and values for this dictionary.

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.

func setMarkedText(String?, selectedRange: NSRange)

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

Required.

func unmarkText()

Unmark the currently marked text.

Required.

var selectionAffinity: UITextStorageDirection

The desired location for the insertion point.