init(postProcessingAsVideoLayers:in:)
Composes the composited video frames with the Core Animation layer.
Declaration
convenience init(postProcessingAsVideoLayers videoLayers: [CALayer], in animationLayer: CALayer)Parameters
- videoLayers:
An array containing the video layers
- animationLayer:
The animation layer.
Return Value
A new AVVideoCompositionCoreAnimationTool instance with the composited video frames and the rendered animation layer.
Discussion
Duplicates the composited video frames in each videoLayer and renders animationLayer to produce the final frame. The videoLayers should be in animationLayer’s sublayer tree.
The animationLayer should not come from, or be added to, another layer tree.