<!--
{
  "availability" : [
    "macOS: 10.14.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PhotoKit",
  "identifier" : "/documentation/Photos/PHProjectChangeRequest/setProjectPreviewImage(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Photos"
    ],
    "preciseIdentifier" : "c:objc(cs)PHProjectChangeRequest(im)setProjectPreviewImage:"
  },
  "title" : "setProjectPreviewImage(_:)"
}
-->

# setProjectPreviewImage(_:)

Updates the project preview in Photos.

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

## Parameters

`previewImage`

A rendered project preview with dimensions of 1024 x 1024.

## 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:)`](/documentation/PhotosUI/PHProjectExtensionController/beginProject(with:projectInfo:completion:)) protocol method.
- During or after execution of the [`resumeProject(with:completion:)`](/documentation/PhotosUI/PHProjectExtensionController/resumeProject(with:completion:)) protocol method.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)