<!--
{
  "availability" : [
    "iOS: 16.0.0 - 26.0.0",
    "iPadOS: 16.0.0 - 26.0.0",
    "macCatalyst: 16.0.0 - 26.0.0",
    "macOS: 13.0.0 - 26.0.0",
    "tvOS: 16.0.0 - 26.0.0",
    "visionOS: 1.0.0 - 26.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVMutableVideoComposition/videoComposition(withPropertiesOf:prototypeInstruction:completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVMutableVideoComposition(cm)videoCompositionWithPropertiesOfAsset:prototypeInstruction:completionHandler:"
  },
  "title" : "videoComposition(withPropertiesOf:prototypeInstruction:completionHandler:)"
}
-->

# videoComposition(withPropertiesOf:prototypeInstruction:completionHandler:)

Returns a new mutable video composition with the specified asset properties and a prototype video composition instruction.

```
class func videoComposition(withPropertiesOf asset: AVAsset, prototypeInstruction: AVVideoCompositionInstruction, completionHandler: @escaping @Sendable (AVMutableVideoComposition?, (any Error)?) -> Void)
```

```
class func videoComposition(withPropertiesOf asset: AVAsset, prototypeInstruction: AVVideoCompositionInstruction) async throws -> AVMutableVideoComposition
```

## Parameters

`asset`

The asset for which to create a video composition. Load the asset’s [`duration`](/documentation/AVFoundation/AVAsset/duration) and [`tracks`](/documentation/AVFoundation/AVAsset/tracks) properties before invoking this method.

`prototypeInstruction`

A video composition instruction to use as a prototype.

`completionHandler`

A block the system calls when it finishes creating the new video composition.

---

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)