---
title: "updatedProjectInfo(from:completion:)"
framework: photosui
role: symbol
role_heading: Instance Method
path: "photosui/phprojectextensioncontext/updatedprojectinfo(from:completion:)"
---

# updatedProjectInfo(from:completion:)

Creates an updated PHProjectInfo instance from existing project information and current assets.

## Declaration

```swift
func updatedProjectInfo(from existingProjectInfo: PHProjectInfo?, completion: @escaping (PHProjectInfo?) -> Void) -> Progress
```

## Parameters

- `existingProjectInfo`: The project information to update. If this is not nil, a new doc://com.apple.photokit/documentation/PhotosUI/PHProjectInfo instance is created from all assets in the doc://com.apple.photokit/documentation/Photos/PHProject.
- `completion`: A closure with code you provide that runs on completion.

## See Also

### Updating Assets

- [showEditor(for:)](photosui/phprojectextensioncontext/showeditor(for:).md)
