---
title: embedsSemanticSegmentationMattesInPhoto
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcapturephotosettings/embedssemanticsegmentationmattesinphoto
---

# embedsSemanticSegmentationMattesInPhoto

A Boolean value that specifies whether to write the enabled semantic segmentation matte types captured with this photo to the photo’s file structure.

## Declaration

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

## Discussion

Discussion Semantic segmentation mattes are only supported in HEIF and JPEG. The photo output ignores this property if you set enabledSemanticSegmentationMatteTypes to an empty array. The property’s default value is true. important: Enabling semantic segmentation matte delivery requires a lengthy reconfiguration of the capture render pipeline. If you intend to capture semantic segmentation mattes, set this property to true before calling the capture session’s startRunning() method.

## See Also

### Capturing semantic segmentation mattes

- [enabledSemanticSegmentationMatteTypes](avfoundation/avcapturephotosettings/enabledsemanticsegmentationmattetypes.md)
