---
title: PHProjectRegionOfInterest
framework: photosui
role: symbol
role_heading: Class
path: photosui/phprojectregionofinterest
---

# PHProjectRegionOfInterest

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

## Declaration

```swift
class PHProjectRegionOfInterest
```

## Overview

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

- [PHProjectRegionOfInterest.Identifier](photosui/phprojectregionofinterest/identifier-swift.struct.md)

### Determining Region Properties

- [rect](photosui/phprojectregionofinterest/rect.md)
- [identifier](photosui/phprojectregionofinterest/identifier-swift.property.md)
- [weight](photosui/phprojectregionofinterest/weight.md)
- [quality](photosui/phprojectregionofinterest/quality.md)

### Initializers

- [init(coder:)](photosui/phprojectregionofinterest/init(coder:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.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)
- [PHProjectExtensionContext](photosui/phprojectextensioncontext.md)
- [PHProjectElement](photosui/phprojectelement.md)
- [PHProjectSection](photosui/phprojectsection.md)
- [PHProjectChangeRequest](photos/phprojectchangerequest.md)
- [PHProjectExtensionController](photosui/phprojectextensioncontroller.md)
- [PHProjectCategory](photosui/phprojectcategory.md)
