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