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