init(additionalLayer:asTrackID:)
Adds a Core Animation layer to the video composition.
Declaration
convenience init(additionalLayer layer: sending CALayer, asTrackID trackID: CMPersistentTrackID)Parameters
- layer:
The Core Animation layer to add.
- trackID:
A track ID to identify the track.
trackIDshould not match any real trackID in the source.
Return Value
A new Core Animation tool for the layer.
Discussion
You use this method to include a Core Animation layer as an individual track input in video composition.
Video composition instructions should reference trackID where the rendered animation should be included.