---
title: "init(postProcessingAsVideoLayer:in:)"
framework: avfoundation
role: symbol
role_heading: Initializer
path: "avfoundation/avvideocompositioncoreanimationtool/init(postprocessingasvideolayer:in:)"
---

# init(postProcessingAsVideoLayer:in:)

Composes the composited video frame with a Core Animation layer.

## Declaration

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

## Parameters

- `videoLayer`: A video layer.
- `animationLayer`: An animation layer.

## Return Value

Return Value A new animation tool for the composition.

## Discussion

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

- [init(additionalLayer:asTrackID:)](avfoundation/avvideocompositioncoreanimationtool/init(additionallayer:astrackid:).md)
- [init(postProcessingAsVideoLayers:in:)](avfoundation/avvideocompositioncoreanimationtool/init(postprocessingasvideolayers:in:).md)
- [init(configuration:)](avfoundation/avvideocompositioncoreanimationtool/init(configuration:).md)
- [AVVideoCompositionCoreAnimationTool.Configuration](avfoundation/avvideocompositioncoreanimationtool/configuration.md)
