<!--
{
  "availability" : [
    "macOS: 10.13.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PhotosUI",
  "identifier" : "/documentation/PhotosUI/PHProjectInfo",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "PhotosUI"
    ],
    "preciseIdentifier" : "c:objc(cs)PHProjectInfo"
  },
  "title" : "PHProjectInfo"
}
-->

# PHProjectInfo

Information about the project extension.

```
class PHProjectInfo
```

## Overview

macOS Photos automatically generates a [`PHProjectInfo`](/documentation/PhotosUI/PHProjectInfo) object when creating a new project. Photos passes along the project information with a [`PHProjectExtensionContext`](/documentation/PhotosUI/PHProjectExtensionContext) object. This object contains metadata about the project’s creation source, sections, product type, branding, and page numbers. Your extension leverages project information to influence project layout, autoflow, and theme selection. The properties of this class are immutable, and your extension can’t instantiate the object directly.

## Topics

### Determining Project Type

[`var projectType: PHProjectType`](/documentation/PhotosUI/PHProjectInfo/projectType)

The project type that the user selected from the project extension options.

[`struct PHProjectType`](/documentation/PhotosUI/PHProjectType)

The type descriptor of a project extension.

[`var creationSource: PHProjectInfo.CreationSource`](/documentation/PhotosUI/PHProjectInfo/creationSource-swift.property)

The source from which the project was created.

[`var sections: [PHProjectSection]`](/documentation/PhotosUI/PHProjectInfo/sections)

An array of project sections, each containing one or more section content objects.

[`class PHProjectTypeDescription`](/documentation/PhotosUI/PHProjectTypeDescription)

An extensible enumerator for [`PHProjectType`](/documentation/PhotosUI/PHProjectType) that’s presented to users in the project picker.

[`protocol PHProjectTypeDescriptionDataSource`](/documentation/PhotosUI/PHProjectTypeDescriptionDataSource)

A protocol that you use to provide the project with type description data.

[`protocol PHProjectTypeDescriptionInvalidator`](/documentation/PhotosUI/PHProjectTypeDescriptionInvalidator)

A protocol that you use to tell the project when and how to invalidate type and footer text.

[`enum CreationSource`](/documentation/PhotosUI/PHProjectInfo/CreationSource-swift.enum)

Defines the source of a project extension.

### Creating a Project from an Apple Print Product

[`var brandingEnabled: Bool`](/documentation/PhotosUI/PHProjectInfo/brandingEnabled)

A Boolean value indicating whether branding was enabled in the source project.

[`var pageNumbersEnabled: Bool`](/documentation/PhotosUI/PHProjectInfo/pageNumbersEnabled)

A Boolean value indicating whether page numbering was enabled in the source project.

[`var productIdentifier: String?`](/documentation/PhotosUI/PHProjectInfo/productIdentifier)

The product identifier of the originating Apple Print Product.

[`var themeIdentifier: String?`](/documentation/PhotosUI/PHProjectInfo/themeIdentifier)

The product theme identifier of the originating Apple Print Product.

### Initializers

[`init?(coder: NSCoder)`](/documentation/PhotosUI/PHProjectInfo/init(coder:))

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Equatable`](/documentation/Swift/Equatable)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`CVarArg`](/documentation/Swift/CVarArg)

[`Sendable`](/documentation/Swift/Sendable)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)