---
title: PHProjectExtensionContext
framework: photosui
role: symbol
role_heading: Class
path: photosui/phprojectextensioncontext
---

# PHProjectExtensionContext

An object that provides Photos project extensions with access to the underlying project, as well as to the user’s photo library for editing.

## Declaration

```swift
class PHProjectExtensionContext
```

## Overview

Overview When a Photos project extension is initialized, it is handed an extension context object. This object provides the extension with access to the underlying project, as well as the photo library from which assets are fetched and edited.

## Topics

### Accessing the Project and the Photo Library

- [project](photosui/phprojectextensioncontext/project.md)
- [photoLibrary](photosui/phprojectextensioncontext/photolibrary.md)

### Updating Assets

- [showEditor(for:)](photosui/phprojectextensioncontext/showeditor(for:).md)
- [updatedProjectInfo(from:completion:)](photosui/phprojectextensioncontext/updatedprojectinfo(from:completion:).md)

## Relationships

### Inherits From

- [NSExtensionContext](foundation/nsextensioncontext.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### macOS Photos Project Extensions

- [Creating a Slideshow Project Extension for Photos](photokit/creating-a-slideshow-project-extension-for-photos.md)
- [PHProject](photos/phproject.md)
- [PHProjectInfo](photosui/phprojectinfo.md)
- [PHProjectElement](photosui/phprojectelement.md)
- [PHProjectSection](photosui/phprojectsection.md)
- [PHProjectRegionOfInterest](photosui/phprojectregionofinterest.md)
- [PHProjectChangeRequest](photos/phprojectchangerequest.md)
- [PHProjectExtensionController](photosui/phprojectextensioncontroller.md)
- [PHProjectCategory](photosui/phprojectcategory.md)
