removeTimeRange(_:)
Removes a specified time range from all tracks of the composition.
Declaration
func removeTimeRange(_ timeRange: CMTimeRange)Parameters
- timeRange:
The time range to remove.
Discussion
After removing, existing content after the time range moves forward in the composition timeline.
Removing a time range doesn’t remove any existing tracks from the composition, even if removing it results in an empty track. Instead, it removes or truncates track segments that intersect with the time range.