Structure

PHProjectCategory

A representation of Photos project extension categories.

Declaration

struct PHProjectCategory

Overview

This structure encapsulates macOS Photos project extension categories. Use this category to designate the types of projects your extension can create, such as books, calendars, cards, and slideshows.

Topics

Creating a Project Category

init(rawValue: String)

Intializes a project category from its raw string value.

Designating Type Properties

static let book: PHProjectCategory

The project category for a printed book.

static let calendar: PHProjectCategory

The project category for a printed calendar.

static let card: PHProjectCategory

The project category for a printed card.

static let prints: PHProjectCategory

The project category for physical prints.

static let slideshow: PHProjectCategory

The project category for a slideshow.

static let wallDecor: PHProjectCategory

The project category for wall décor.

static let other: PHProjectCategory

The project category for a custom extension type.

Relationships

See Also

macOS Photos Project Extensions

Creating a Slideshow Project Extension for Photos

Augment the macOS Photos app with extensions that support project creation.

class PHProject

A representation of a Photos app project extension.

class PHProjectInfo

Information about the project extension.

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

class PHProjectElement

The superclass for all element objects.

class PHProjectSection

A collection of content representing curated asset and text elements.

class PHProjectRegionOfInterest

A representation of a region of interest in a photo asset.

class PHProjectChangeRequest

A request to change asset data in a Photos project extension.

protocol PHProjectExtensionController

A protocol defining the life cycle and supported types of project extensions.

class PHCloudIdentifier

A cloud identifier for a Photos project extension.