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

# init(postProcessingAsVideoLayers:in:)

Composes the composited video frames with the Core Animation layer.

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

> Note:
> On iOS, a layer instance backing a <doc://com.apple.documentation/documentation/UIKit/UIView> usually have their content flipped, as defined by the <doc://com.apple.documentation/documentation/QuartzCore/CALayer/contentsAreFlipped()> method. It may be required to insert a <doc://com.apple.documentation/documentation/QuartzCore/CALayer> instance with its <doc://com.apple.documentation/documentation/QuartzCore/CALayer/isGeometryFlipped> property set to <doc://com.apple.documentation/documentation/Swift/true> in the layer hierarchy to get the same result when attaching a layer to the receiver when the layer backs a <doc://com.apple.documentation/documentation/UIKit/UIView>.

---

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)