<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 14.0.0 -",
    "tvOS: 17.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVCapturePhotoSettings/isPortraitEffectsMatteDeliveryEnabled",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVCapturePhotoSettings(py)portraitEffectsMatteDeliveryEnabled"
  },
  "title" : "isPortraitEffectsMatteDeliveryEnabled"
}
-->

# isPortraitEffectsMatteDeliveryEnabled

Specifies whether a portrait effects matte should be captured along with the photo.

```
var isPortraitEffectsMatteDeliveryEnabled: Bool { get set }
```

## Discussion

The default is `NO`.  Set to `YES` if you wish to receive a portrait effects matte with your photo. AVFoundation throws an exception if [`isPortraitEffectsMatteDeliveryEnabled`](/documentation/AVFoundation/AVCapturePhotoOutput/isPortraitEffectsMatteDeliveryEnabled) is not set to `YES`, or if your delegate doesn’t respond to the [`photoOutput(_:didFinishProcessingPhoto:error:)`](/documentation/AVFoundation/AVCapturePhotoCaptureDelegate/photoOutput(_:didFinishProcessingPhoto:error:)) selector.

> Important:
> Portrait effects matte generation requires depth data to be present, so you must also set ``doc://com.apple.avfoundation/documentation/AVFoundation/AVCapturePhotoOutput/isDepthDataDeliveryEnabled`` to `YES`.

Setting this property to `YES` doen’t guarantee that a portrait effects matte will be present in the resulting [`AVCapturePhoto`](/documentation/AVFoundation/AVCapturePhoto). The matte is primarily used to improve the rendering quality of portrait effects on the image. If the photo’s content lacks a clear foreground subject, no portrait effects matte is generated, and the property returns `nil`. Setting this property to `YES` may add significant processing time to the delivery of your [`photoOutput(_:didFinishProcessingPhoto:error:)`](/documentation/AVFoundation/AVCapturePhotoCaptureDelegate/photoOutput(_:didFinishProcessingPhoto:error:)) callback.

---

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)