<!--
{
  "availability" : [
    "iOS: 4.0.0 - 27.0.0",
    "iPadOS: 4.0.0 - 27.0.0",
    "macCatalyst: 13.1.0 - 27.0.0",
    "macOS: 10.7.0 - 27.0.0",
    "tvOS: 9.0.0 - 27.0.0",
    "visionOS: 1.0.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVVideoCompositionCoreAnimationTool/init(postProcessingAsVideoLayer:in:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVVideoCompositionCoreAnimationTool(cm)videoCompositionCoreAnimationToolWithPostProcessingAsVideoLayer:inLayer:"
  },
  "title" : "init(postProcessingAsVideoLayer:in:)"
}
-->

# init(postProcessingAsVideoLayer:in:)

Composes the composited video frame with a Core Animation layer.

```
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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)