Class

PHProjectRegionOfInterest

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

Declaration

@interface 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

PHProjectRegionOfInterestIdentifier

A descriptor identifying a region of interest.

Determining Region Properties

rect

The rectangle representing the region's location.

identifier

The region's unique identifier.

weight

The face region's weight.

quality

The region's quality.

Relationships

Inherits From

Conforms To

See Also

macOS Photos Project Extensions

Creating a Slideshow Project Extension for Photos

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

PHProject

A representation of a Photos app project extension.

PHProjectInfo

Information about the project extension.

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.

PHProjectElement

The superclass for all element objects.

PHProjectSection

A collection of content representing curated asset and text elements.

PHProjectChangeRequest

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

PHProjectExtensionController

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

PHCloudIdentifier

A cloud identifier for a Photos project extension.

PHProjectCategory

A representation of Photos project extension categories.