<!--
{
  "availability" : [
    "macOS: 10.13.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PhotosUI",
  "identifier" : "/documentation/PhotosUI/PHProjectExtensionController/beginProject(with:projectInfo:completion:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "PhotosUI"
    ],
    "preciseIdentifier" : "c:objc(pl)PHProjectExtensionController(im)beginProjectWithExtensionContext:projectInfo:completion:"
  },
  "title" : "beginProject(with:projectInfo:completion:)"
}
-->

# beginProject(with:projectInfo:completion:)

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)
```

```
func beginProject(with extensionContext: PHProjectExtensionContext, projectInfo: PHProjectInfo) async throws
```

## 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.

---

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)