---
title: "finish(withComposedTaggedBuffers:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avasynchronousvideocompositionrequest/finish(withcomposedtaggedbuffers:)"
---

# finish(withComposedTaggedBuffers:)

The method that the custom compositor calls when composition succeeds.

## Declaration

```swift
func finish(withComposedTaggedBuffers taggedBuffers: [CMTaggedDynamicBuffer])
```

## Parameters

- `taggedBuffers`: The tagged buffers containing the composed tagged buffers. The tagged buffers must be compatible with the outputBufferDescription specified in the video composition. The outputBufferDescription must not be nil when calling this function. NOTE: If AVVideoComposition/spatialConfigurations is not empty, then attach(spatialVideoConfiguration:to:) must be called with one of the spatial configurations. An exception will be thrown otherwise. Also, all pixel buffers must be associated with the same spatial configuration. An exception will be thrown otherwise.

## See Also

### Finishing the request

- [finish(withComposedVideoFrame:)](avfoundation/avasynchronousvideocompositionrequest/finish(withcomposedvideoframe:).md)
- [finish(withComposedPixelBuffer:)](avfoundation/avasynchronousvideocompositionrequest/finish(withcomposedpixelbuffer:).md)
- [finish(with:)](avfoundation/avasynchronousvideocompositionrequest/finish(with:).md)
- [finishCancelledRequest()](avfoundation/avasynchronousvideocompositionrequest/finishcancelledrequest().md)
