---
title: "CMTimeMappingMakeEmpty(target:)"
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/cmtimemappingmakeempty(target:)"
---

# CMTimeMappingMakeEmpty(target:)

Creates a valid time mapping with an empty source.

## Declaration

```swift
func CMTimeMappingMakeEmpty(target: CMTimeRange) -> CMTimeMapping
```

## Parameters

- `target`: A time range on the target timeline.

## Return Value

Return Value A new time mapping.

## Discussion

Discussion The target time range must have a duration whose epoch is 0, otherwise the system returns an invalid time mapping.

## See Also

### Creating Time Mappings

- [CMTimeMappingMake(source:target:)](coremedia/cmtimemappingmake(source:target:).md)
- [CMTimeMappingMakeFromDictionary(_:)](coremedia/cmtimemappingmakefromdictionary(_:).md)
