invalidateAttributes(in:)
Invalidates attributes in the specified range.
Declaration
func invalidateAttributes(in range: NSRange)Parameters
- range:
The range of characters whose attributes the method should invalidate.
Discussion
Called from processEditing() to invalidate attributes when the text storage changes. If the receiver isn’t lazy, this method calls fixAttributes(in:). If lazy attribute fixing is in effect, this method instead records the range needing fixing.