textColor(at:)
Returns the text color at the index position.
Declaration
@nonobjc func textColor(at index: String.Index) -> (CGColor?, Range<String.Index>)Parameters
- index:
A character position in the caption text.
Return Value
A tuple that contains the text color and range to which it applies.