---
title: "CMTimeMappingCopyAsDictionary(_:allocator:)"
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/cmtimemappingcopyasdictionary(_:allocator:)"
---

# CMTimeMappingCopyAsDictionary(_:allocator:)

Returns a dictionary representation of a time mapping.

## Declaration

```swift
func CMTimeMappingCopyAsDictionary(_ mapping: CMTimeMapping, allocator: CFAllocator?) -> CFDictionary?
```

## Parameters

- `mapping`: The time mapping for which to create a dictionary representation.
- `allocator`: An allocator to use to create a dictionary. Pass kCFAllocatorDefault to use the default allocator.

## Return Value

Return Value A dictionary representation of a time mapping.

## See Also

### Representing Time Mappings

- [CMTimeMappingCopyDescription(allocator:mapping:)](coremedia/cmtimemappingcopydescription(allocator:mapping:).md)
- [CMTimeMappingShow(_:)](coremedia/cmtimemappingshow(_:).md)
