---
title: "init(propertiesOf:prototypeInstruction:)"
framework: avfoundation
role: symbol
role_heading: Initializer
path: "avfoundation/avmutablevideocomposition/init(propertiesof:prototypeinstruction:)"
---

# init(propertiesOf:prototypeInstruction:)

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

## Declaration

```swift
init(propertiesOf asset: AVAsset, prototypeInstruction: AVVideoCompositionInstruction)
```

## Parameters

- `asset`: The asset for which to create a video composition. Load the asset’s doc://com.apple.avfoundation/documentation/AVFoundation/AVAsset/duration and doc://com.apple.avfoundation/documentation/AVFoundation/AVAsset/tracks properties before invoking this method.
- `prototypeInstruction`: A video composition instruction to use as a prototype.

## See Also

### Creating a video composition

- [videoComposition(withPropertiesOf:completionHandler:)](avfoundation/avmutablevideocomposition/videocomposition(withpropertiesof:completionhandler:).md)
- [videoComposition(withPropertiesOf:prototypeInstruction:completionHandler:)](avfoundation/avmutablevideocomposition/videocomposition(withpropertiesof:prototypeinstruction:completionhandler:).md)
- [videoComposition(with:applyingCIFiltersWithHandler:completionHandler:)](avfoundation/avmutablevideocomposition/videocomposition(with:applyingcifilterswithhandler:completionhandler:).md)
- [init(propertiesOf:)](avfoundation/avmutablevideocomposition/init(propertiesof:).md)
- [init(asset:applyingCIFiltersWithHandler:)](avfoundation/avmutablevideocomposition/init(asset:applyingcifilterswithhandler:).md)
