beginProject(with:projectInfo:completion:)

beginProject(with:projectInfo:completion:)

beginProject(with:projectInfo:completion:) Instance Method of PHProjectExtensionController Provides an opportunity to customize the initial state when the user creates a project using the extension.

func beginProject(with extensionContext: PHProjectExtensionContext, projectInfo: PHProjectInfo, completion: @escaping @Sendable ((any Error)?) -> Void)

Parameters

extensionContext

The extension context with access to the project assets.

projectInfo

Information about the project the extension is called on.

completion

A closure with code you provide that runs on completion.

Discussion