Contents

clearsOnInsertion

A Boolean value that indicates 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