Returns the value for the temporary attribute of a character, and the range to which the attribute applies.
- macOS 10.5+
The name of a temporary attribute.
The index for which to return attributes. This value must not exceed the bounds of the receiver.
If the named attribute exists at
location, on output, contains the range over which the named attribute’s value applies.
If the named attribute does not exist at
location, on output, contains the range over which the attribute does not exist.
The range isn’t necessarily the maximum range covered by
attr, and its extent is implementation-dependent. If you need the maximum range, use
temporary. If you don't need this value, pass
Attribute(_: at Character Index: longest Effective Range: in:)
The value for the temporary attribute named
attr of the character at index
nil if there is no such attribute.