setMarkedText(_:selectedRange:)
Inserts the provided text and marks it to indicate that it is part of an active input session.
Declaration
func setMarkedText(_ markedText: String?, selectedRange: NSRange)Parameters
- markedText:
The text to be marked.
- selectedRange:
A range within
markedTextthat indicates the current selection. This range is always relative tomarkedText.
Discussion
Setting marked text either replaces the existing marked text or, if none is present, inserts it in place of the current selection.