<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVVideoCompositionCoreAnimationTool/Configuration/init(postProcessingAsVideoLayer:containingLayer:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "s:So35AVVideoCompositionCoreAnimationToolC12AVFoundationE13ConfigurationV26postProcessingAsVideoLayer010containingL0AESo7CALayerC_AItcfc"
  },
  "title" : "init(postProcessingAsVideoLayer:containingLayer:)"
}
-->

# init(postProcessingAsVideoLayer:containingLayer:)

Place composited video frames in videoLayer and render animationLayer
to produce the final frame. Normally videoLayer should be in animationLayer’s sublayer tree.
The animationLayer should not come from, or be added to, another layer tree.
Be aware that on iOS, CALayers backing a UIView usually have their content flipped (as defined by the
-contentsAreFlipped method). It may be required to insert a CALayer with its geometryFlipped property set
to YES in the layer hierarchy to get the same result when attaching a CALayer to a AVVideoCompositionCoreAnimationTool
as when using it to back a UIView.

```
init(postProcessingAsVideoLayer layer: CALayer, containingLayer: CALayer)
```

---

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)