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