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

# CMTimeMappingMakeFromDictionary(_:)

Creates a time mapping from a dictionary representation.

```
func CMTimeMappingMakeFromDictionary(_ dictionaryRepresentation: CFDictionary) -> CMTimeMapping
```

## Parameters

`dictionaryRepresentation`

A dictionary representation of a time mapping that you previously created by calling the [`CMTimeMappingCopyAsDictionary(_:allocator:)`](/documentation/CoreMedia/CMTimeMappingCopyAsDictionary(_:allocator:)) function.

## Return Value

A new time mapping.

## Discussion

If the dictionary you provide doesn’t have the requisite keyed values, the system returns an invalid time mapping.

---

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)