---
title: "insertEmptyTimeRange(_:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avmutablecomposition/insertemptytimerange(_:)"
---

# insertEmptyTimeRange(_:)

Adds or extends an empty time range within all tracks of the composition.

## Declaration

```swift
func insertEmptyTimeRange(_ timeRange: CMTimeRange)
```

## Parameters

- `timeRange`: The empty time range to insert.

## Discussion

Discussion Inserting an empty time range pushes out existing content by the time range’s duration. Use this method to reserve a time range in the composition for a subsequently created track to present its media.

## See Also

### Managing time ranges

- [removeTimeRange(_:)](avfoundation/avmutablecomposition/removetimerange(_:).md)
- [scaleTimeRange(_:toDuration:)](avfoundation/avmutablecomposition/scaletimerange(_:toduration:).md)
- [insertTimeRange(_:of:at:completionHandler:)](avfoundation/avmutablecomposition/inserttimerange(_:of:at:completionhandler:).md)
- [insertTimeRange(_:of:at:)](avfoundation/avmutablecomposition/inserttimerange(_:of:at:).md)
