Contents

removeAttribute(_:range:)

Removes the named attribute from the characters in the specified range.

Declaration

func removeAttribute(_ name: NSAttributedString.Key, range: NSRange)

Parameters

  • name:

    A string specifying the attribute name to remove. Attribute keys can be supplied by another framework or can be custom ones you define. For information about where to find the system-supplied attribute keys, see the overview section in Nsattributedstring.

  • range:

    The range of characters from which the specified attribute is removed.

Discussion

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

See Also

Changing Attributes