Contents

replaceCharacters(in:with:)

Replaces the characters and attributes in a given range with the characters and attributes of the given attributed string.

Declaration

func replaceCharacters(in range: NSRange, with attrString: NSAttributedString)

Parameters

  • range:

    The range of characters and attributes replaced.

  • attrString:

    The attributed string whose characters and attributes replace those in the specified range.

Discussion

Raises an rangeException if any part of range lies beyond the end of the receiver’s characters.

See Also

Changing Characters and Attributes