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

# PHProjectRegionOfInterest

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

```
class PHProjectRegionOfInterest
```

## 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 <doc://com.apple.photokit/documentation/PhotoKit/creating-a-slideshow-project-extension-for-photos>.

## Topics

### Identifying Regions of Interest

[`struct Identifier`](/documentation/PhotosUI/PHProjectRegionOfInterest/Identifier-swift.struct)

A descriptor identifying a region of interest.

### Determining Region Properties

[`var rect: CGRect`](/documentation/PhotosUI/PHProjectRegionOfInterest/rect)

The rectangle representing the region’s location.

[`var identifier: PHProjectRegionOfInterest.Identifier`](/documentation/PhotosUI/PHProjectRegionOfInterest/identifier-swift.property)

The region’s unique identifier.

[`var weight: Double`](/documentation/PhotosUI/PHProjectRegionOfInterest/weight)

The face region’s weight.

[`var quality: Double`](/documentation/PhotosUI/PHProjectRegionOfInterest/quality)

The region’s quality.

### Initializers

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

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

### 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)