---
title: "CMTimeMappingMakeFromDictionary(_:)"
framework: Core Media
role: symbol
role_heading: Function
platforms: [iOS 9.0+, iPadOS 9.0+, Mac Catalyst 13.1+, macOS 10.11+, tvOS 9.0+, visionOS 1.0+, watchOS 6.0+]
path: "coremedia/cmtimemappingmakefromdictionary(_:)"
---

# CMTimeMappingMakeFromDictionary(_:)

Creates a time mapping from a dictionary representation.

## Declaration

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

## Parameters

- `dictionaryRepresentation`: A dictionary representation of a time mapping that you previously created by calling the doc://com.apple.coremedia/documentation/CoreMedia/CMTimeMappingCopyAsDictionary(_:allocator:) function.

## Return Value

Return Value A new time mapping.

## Discussion

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

## See Also

### Creating Time Mappings

- [CMTimeMappingMake(source:target:)](coremedia/cmtimemappingmake(source:target:).md)
- [CMTimeMappingMakeEmpty(target:)](coremedia/cmtimemappingmakeempty(target:).md)
