<!--
{
  "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/embedsPortraitEffectsMatteInPhoto",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVCapturePhotoSettings(py)embedsPortraitEffectsMatteInPhoto"
  },
  "title" : "embedsPortraitEffectsMatteInPhoto"
}
-->

# embedsPortraitEffectsMatteInPhoto

Specifies whether the portrait effects matte captured with ths photo should be written to the photo’s file structure.

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

## Discussion

The default is <doc://com.apple.documentation/documentation/Swift/true>, which tells AV Foundation to embed the portrait effects matte images as HEIF and JPEG in the photo.

This property is ignored if [`isPortraitEffectsMatteDeliveryEnabled`](/documentation/AVFoundation/AVCapturePhotoSettings/isPortraitEffectsMatteDeliveryEnabled) is set to <doc://com.apple.documentation/documentation/Swift/false>. AV Foundation includes the portrait effects matte only if both this property and [`isPortraitEffectsMatteDeliveryEnabled`](/documentation/AVFoundation/AVCapturePhotoSettings/isPortraitEffectsMatteDeliveryEnabled) are set to <doc://com.apple.documentation/documentation/Swift/true>.

---

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)