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

# containsTimeRange(_:)

Returns a Boolean value that indicates whether the time range contains another time range.

## Declaration

```swift
func containsTimeRange(_ range: CMTimeRange) -> Bool
```

## Parameters

- `range`: The time range to test for inclusion.

## Return Value

Return Value true if time range contains range; otherwise, false.

## See Also

### Finding Elements

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