Contents

init(postProcessingAsVideoLayer:in:)

Composes the composited video frame with a Core Animation layer.

Declaration

convenience init(postProcessingAsVideoLayer videoLayer: CALayer, in animationLayer: CALayer)

Parameters

  • videoLayer:

    A video layer.

  • animationLayer:

    An animation layer.

Return Value

A new animation tool for the composition.

Discussion

Place composited video frames in videoLayer and render animationLayer to produce the final frame.

The videoLayer should be in the animationLayer sublayer tree. The animationLayer should not come from, or be added to, another layer tree.

See Also

Creating a composition tool