Contents

init(_:timeRange:)

Creates a caption that contains text and a time range.

Declaration

init(_ text: String, timeRange: CMTimeRange)

Parameters

  • text:

    The text the caption displays.

  • timeRange:

    The range of time when the caption is active.