---
title: "append(_:with:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avassetwriterinput/pixelbufferreceiver/append(_:with:)"
---

# append(_:with:)

Suspends until the input is ready for more media data, then appends the pixel buffer.

## Declaration

```swift
nonisolated(nonsending) func append(_ pixelBuffer: CVReadOnlyPixelBuffer, with presentationTime: CMTime) async throws
```

## Parameters

- `pixelBuffer`: The pixel buffer to be appended.
- `presentationTime`: The presentation time for the pixel buffer to be appended.

## Discussion

Discussion note: An error if the underlying writer failed.

## See Also

### Appending pixel buffers

- [appendImmediately(_:with:)](avfoundation/avassetwriterinput/pixelbufferreceiver/appendimmediately(_:with:).md)
- [finish()](avfoundation/avassetwriterinput/pixelbufferreceiver/finish().md)
