---
title: "union(_:)"
framework: coremedia
role: symbol
role_heading: Instance Method
path: "coremedia/cmtimerange/union(_:)"
---

# union(_:)

Returns a new time range with the time elements of both this time range and the given time range.

## Declaration

```swift
func union(_ otherRange: CMTimeRange) -> CMTimeRange
```

## Parameters

- `otherRange`: A time range.

## Return Value

Return Value A time range with the unique time elements of this time range and the input.

## See Also

### Combining Time Ranges

- [intersection(_:)](coremedia/cmtimerange/intersection(_:).md)
