---
title: embedsPortraitEffectsMatteInPhoto
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcapturephotosettings/embedsportraiteffectsmatteinphoto
---

# embedsPortraitEffectsMatteInPhoto

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

## Declaration

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

## Discussion

Discussion The default is 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 is set to false. AV Foundation includes the portrait effects matte only if both this property and isPortraitEffectsMatteDeliveryEnabled are set to true.

## See Also

### Capturing Portrait Effects matte

- [isPortraitEffectsMatteDeliveryEnabled](avfoundation/avcapturephotosettings/isportraiteffectsmattedeliveryenabled.md)
