---
title: "init(captions:timeRange:)"
framework: avfoundation
role: symbol
role_heading: Initializer
path: "avfoundation/avcaptiongroup/init(captions:timerange:)"
---

# init(captions:timeRange:)

Creates a caption group with captions and a time range.

## Declaration

```swift
init(captions: [AVCaption], timeRange: CMTimeRange)
```

## Parameters

- `captions`: The captions of the caption group.
- `timeRange`: The time range of the caption group.

## See Also

### Creating a caption group

- [init(timeRange:)](avfoundation/avcaptiongroup/init(timerange:).md)
