Contents

replace(_:withText:)

Replaces the text in a document that is in the specified range.

Declaration

func replace(_ range: UITextRange, withText text: String)

Parameters

  • range:

    A range of text in a document.

  • text:

    A string to replace the text in range.

See Also

Replacing and returning text