setProjectPreviewImage(_:)
Updates the project preview in Photos.
Declaration
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:) protocol method.
During or after execution of the resumeProject(with:completion:) protocol method.