---
title: "setProjectPreviewImage(_:)"
framework: photos
role: symbol
role_heading: Instance Method
path: "photos/phprojectchangerequest/setprojectpreviewimage(_:)"
---

# setProjectPreviewImage(_:)

Updates the project preview in Photos.

## Declaration

```swift
func setProjectPreviewImage(_ previewImage: NSImage)
```

## Parameters

- `previewImage`: A rendered project preview with dimensions of 1024 x 1024.

## Discussion

Discussion PhotoKit requires that you set a project preview in the following situations: Whenever the project changes in a way that requires a new preview. During or after execution of the beginProject(with:projectInfo:completion:) protocol method. During or after execution of the resumeProject(with:completion:) protocol method.

## See Also

### Responding to Change Requests

- [setKeyAsset(_:)](photos/phprojectchangerequest/setkeyasset(_:).md)
