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

# appendImmediately(_:with:)

Appends the pixel buffer synchronously if the input is ready for more media data.

## Declaration

```swift
func appendImmediately(_ pixelBuffer: CVReadOnlyPixelBuffer, with presentationTime: CMTime) throws -> Bool
```

## Parameters

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

## Return Value

Return Value Returns true if the append was successful, false if the input was not ready for more media data.

## Discussion

Discussion note: An error if the underlying writer failed.

## See Also

### Appending pixel buffers

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