---
title: "CMTimeRangeEqual(_:_:)"
framework: Core Media
role: symbol
role_heading: Function
platforms: [iOS 4.0+, iPadOS 4.0+, Mac Catalyst 13.1+, macOS 10.7+, tvOS 9.0+, visionOS 1.0+, watchOS 6.0+]
path: "coremedia/cmtimerangeequal(_:_:)"
---

# CMTimeRangeEqual(_:_:)

Returns a Boolean value that indicates whether two time ranges are equal.

## Declaration

```swift
func CMTimeRangeEqual(_ range1: CMTimeRange, _ range2: CMTimeRange) -> Bool
```

## Parameters

- `range1`: The first time range to compare.
- `range2`: The second time range to compare.

## Return Value

Return Value true if the two time ranges are equal; otherwise, false.

## See Also

### Comparing Time Ranges

- [CMTimeRangeContainsTime(_:time:)](coremedia/cmtimerangecontainstime(_:time:).md)
- [CMTimeRangeContainsTimeRange(_:otherRange:)](coremedia/cmtimerangecontainstimerange(_:otherrange:).md)
