<!--
{
  "availability" : [
    "iOS: 4.0.0 -",
    "iPadOS: 4.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.7.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreMedia",
  "identifier" : "/documentation/CoreMedia/CMTimeRangeMakeFromDictionary(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Media"
    ],
    "preciseIdentifier" : "c:@F@CMTimeRangeMakeFromDictionary"
  },
  "title" : "CMTimeRangeMakeFromDictionary(_:)"
}
-->

# CMTimeRangeMakeFromDictionary(_:)

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

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

## Parameters

`dictionaryRepresentation`

A dictionary from which to create the time range.

## Return Value

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

## Discussion

This is useful when getting Core Media time ranges from Core Foundation container types. For keys in the dictionary, see [Dictionary Keys](/documentation/CoreMedia/cmtimerange-dictionary-keys).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)