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

# AVVideoCompositionCoreAnimationTool

An object used to incorporate Core Animation into a video composition.

```
class AVVideoCompositionCoreAnimationTool
```

## Overview

Any animations will be interpreted on the video’s timeline, not real-time, so you should:

1. Set animations’ <doc://com.apple.documentation/documentation/QuartzCore/CAMediaTiming/beginTime> property to [`AVCoreAnimationBeginTimeAtZero`](/documentation/AVFoundation/AVCoreAnimationBeginTimeAtZero) rather than `0` (which CoreAnimation replaces with <doc://com.apple.documentation/documentation/QuartzCore/CACurrentMediaTime()>);
2. Set <doc://com.apple.documentation/documentation/QuartzCore/CAAnimation/isRemovedOnCompletion> to <doc://com.apple.documentation/documentation/Swift/false> on animations so they are not automatically removed;
3. Avoid using layers that are associated with <doc://com.apple.documentation/documentation/UIKit/UIView> objects.

## Topics

### Creating a composition tool

[`+  videoCompositionCoreAnimationToolWithAdditionalLayer:asTrackID:`](/documentation/AVFoundation/AVVideoCompositionCoreAnimationTool/init(additionalLayer:asTrackID:))

Adds a Core Animation layer to the video composition.

[`+  videoCompositionCoreAnimationToolWithPostProcessingAsVideoLayer:inLayer:`](/documentation/AVFoundation/AVVideoCompositionCoreAnimationTool/init(postProcessingAsVideoLayer:in:))

Composes the composited video frame with a Core Animation layer.

[`+  videoCompositionCoreAnimationToolWithPostProcessingAsVideoLayers:inLayer:`](/documentation/AVFoundation/AVVideoCompositionCoreAnimationTool/init(postProcessingAsVideoLayers:in:))

Composes the composited video frames with the Core Animation layer.

[`init(configuration:)`](/documentation/AVFoundation/AVVideoCompositionCoreAnimationTool/init(configuration:))

Compose the composited video frames with the Core Animation layer.

[`Configuration`](/documentation/AVFoundation/AVVideoCompositionCoreAnimationTool/Configuration)

Configurable properties for initializing a new AVVideoCompositionCoreAnimationTool instance.

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`CVarArg`](/documentation/Swift/CVarArg)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)