Parameters

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.

Note

On iOS, a layer instance backing a UIView usually have their content flipped, as defined by the contentsAreFlipped method. It may be required to insert a CALayer instance with its geometryFlipped property set to YEStrue in the layer hierarchy to get the same result when attaching a layer to the receiver when the layer backs a UIView.