---
title: "CMTimeRangeMakeFromDictionary(_:)"
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/cmtimerangemakefromdictionary(_:)"
---

# CMTimeRangeMakeFromDictionary(_:)

Creates a time range from a dictionary representation of its fields.

## Declaration

```swift
func CMTimeRangeMakeFromDictionary(_ dictionaryRepresentation: CFDictionary) -> CMTimeRange
```

## Parameters

- `dictionaryRepresentation`: A dictionary from which to create the time range.

## Return Value

Return Value A valid time range structure, or an invalid time range if dict doesn’t have the necessary values.

## Discussion

Discussion This is useful when getting Core Media time ranges from Core Foundation container types. For keys in the dictionary, see Dictionary Keys.

## See Also

### Creating Time Ranges

- [CMTimeRangeMake(start:duration:)](coremedia/cmtimerangemake(start:duration:).md)
- [CMTimeRangeFromTimeToTime(start:end:)](coremedia/cmtimerangefromtimetotime(start:end:).md)
