Contents

replaceContents(in:with:)

Replaces content at the location you specify with the text elements string you provide.

Declaration

func replaceContents(in range: NSTextRange, with textElements: [NSTextElement])

Parameters

  • range:

    The range of the content to replace.

  • textElements:

    An array of text elements.

See Also

Accessing the text storage