---
title: previewPixelBuffer
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcapturephoto/previewpixelbuffer
---

# previewPixelBuffer

The pixel data for a preview-sized version of the photo, if requested.

## Declaration

```swift
var previewPixelBuffer: CVPixelBuffer? { get }
```

## Mentioned in

Capturing thumbnail and preview images

## Discussion

Discussion If you requested a preview image by specifying the previewPhotoFormat property of your photo settings when requesting capture, this property offers access to the resulting preview image pixel data. The pixel buffer contains only the minimal attachments required for correct display. If you did not request a preview image, this property’s value is nil.

## See Also

### Accessing preview photo data

- [embeddedThumbnailPhotoFormat](avfoundation/avcapturephoto/embeddedthumbnailphotoformat.md)
