---
title: "CMTIMERANGE_IS_VALID(_:)"
framework: coremedia
role: symbol
role_heading: Function
path: "coremedia/cmtimerange_is_valid(_:)"
---

# CMTIMERANGE_IS_VALID(_:)

Returns a Boolean value that indicates whether a time range is valid.

## Declaration

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

## Parameters

- `range`: The time range.

## Return Value

Return Value true if range is valid; otherwise, false.

## See Also

### Inspecting Time Ranges

- [CMTIMERANGE_IS_EMPTY(_:)](coremedia/cmtimerange_is_empty(_:).md)
- [CMTIMERANGE_IS_INDEFINITE(_:)](coremedia/cmtimerange_is_indefinite(_:).md)
- [CMTIMERANGE_IS_INVALID(_:)](coremedia/cmtimerange_is_invalid(_:).md)
- [CMTimeRangeGetEnd(_:)](coremedia/cmtimerangegetend(_:).md)
- [CMTimeRangeGetIntersection(_:otherRange:)](coremedia/cmtimerangegetintersection(_:otherrange:).md)
- [CMTimeRangeGetUnion(_:otherRange:)](coremedia/cmtimerangegetunion(_:otherrange:).md)
