Contents

replaceContents(in:with:)

Replaces content at the location you specify with an attributed string you provide.

Declaration

func replaceContents(in range: NSTextRange, with attributedString: NSAttributedString)

Parameters

  • range:

    The range of the content to replace.

  • attributedString:

    An attribued string to replace the content at range.

See Also

Accessing the text storage