---
title: "CMTimeFoldIntoRange(_:foldRange:)"
framework: coremedia
role: symbol
role_heading: Function
path: "coremedia/cmtimefoldintorange(_:foldrange:)"
---

# CMTimeFoldIntoRange(_:foldRange:)

Folds a time into a time range.

## Declaration

```swift
func CMTimeFoldIntoRange(_ time: CMTime, foldRange: CMTimeRange) -> CMTime
```

## Parameters

- `time`: The time to fold.
- `foldRange`: The time range into which to fold the time.

## Return Value

Return Value A time that represents the translated duration.

## See Also

### Functions

- [CMVideoFormatDescriptionGetHEVCParameterSetAtIndex(_:parameterSetIndex:parameterSetPointerOut:parameterSetSizeOut:parameterSetCountOut:nalUnitHeaderLengthOut:)](coremedia/cmvideoformatdescriptiongethevcparametersetatindex(_:parametersetindex:parametersetpointerout:parametersetsizeout:parametersetcountout:nalunitheaderlengthout:).md)
