fixAttachmentAttribute(in:)
Cleans up attachment attributes in the specified range and removes all attachment attributes assigned to characters except the designated attachment character.
Declaration
func fixAttachmentAttribute(in range: NSRange)Parameters
- range:
The range of characters.
Discussion
The method preserves the attachment attribute on the character special character. The method raises a rangeException if any part of range lies beyond the end of the string’s characters.