---
title: "insertTimeRange(_:of:at:)"
framework: cinematic
role: symbol
role_heading: Instance Method
path: "cinematic/cncompositioninfo-7eunn/inserttimerange(_:of:at:)"
---

# insertTimeRange(_:of:at:)

Inserts a timeRange of Cinematic source asset into the corresponding tracks of a composition.

## Declaration

```swift
func insertTimeRange(_ timeRange: CMTimeRange, of cinematicAssetInfo: CNAssetInfo, at startTime: CMTime) throws
```

## Parameters

- `timeRange`: The time range where to insert the Cinematic source asset.
- `cinematicAssetInfo`: The asset to insert.
- `startTime`: The starting time where to insert the corresponding tracks of the composition.
