Class

PHProjectRegionOfInterest

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

Declaration

class PHProjectRegionOfInterest : NSObject

Overview

A region of interest defines a rectangular portion of a photo corresponding to a face. Use a region of interest to determine where to focus, zoom, or crop your image in your project extension; for example, you can customize your slideshow's transitions based on each photo's highest-quality region of interest, as shown in Creating a Slideshow Project Extension for Photos.

Topics

Identifying Regions of Interest

struct PHProjectRegionOfInterest.Identifier

A descriptor identifying a region of interest.

Determining Region Properties

var rect: CGRect

The rectangle representing the region's location.

var weight: Double

The face region's weight.

var quality: Double

The region's quality.

Relationships

Inherits From

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

struct PHProjectCategory

A representation of Photos project extension categories.