Instance Property

clearsOnInsertion

A Boolean value indicating whether inserting text replaces the previous contents.

Declaration

var clearsOnInsertion: Bool { get set }

Discussion

The default value of this property is false. When the value of this property is true and the text view is in editing mode, the selection UI is hidden and inserting new text clears the contents of the text view and sets the value of this property back to false.

See Also

Working with the Selection

var selectedRange: NSRange

The current selection range of the receiver.

func scrollRangeToVisible(NSRange)

Scrolls the receiver until the text in the specified range is visible.

var isSelectable: Bool

A Boolean value indicating whether the receiver is selectable.