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

# intersection(_:)

Returns a new time range with the time elements that are common to both this time range and the given time range.

## Declaration

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

## Parameters

- `otherRange`: A time range to intersect.

## Return Value

Return Value A time range that represents the largest intersection of the input.

## See Also

### Combining Time Ranges

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