Deletes the characters in the given range along with their associated attributes.
- iOS 3.2+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
A range specifying the characters to delete.
range if any part of
a lies beyond the end of the receiver’s characters.