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