<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 14.0.0 -",
    "tvOS: 17.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVCapturePhotoSettings/embedsSemanticSegmentationMattesInPhoto",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVCapturePhotoSettings(py)embedsSemanticSegmentationMattesInPhoto"
  },
  "title" : "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.

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

## Discussion

Semantic segmentation mattes are only supported in HEIF and JPEG. The photo output ignores this property if you set [`enabledSemanticSegmentationMatteTypes`](/documentation/AVFoundation/AVCapturePhotoSettings/enabledSemanticSegmentationMatteTypes) to an empty array.

The property’s default value is <doc://com.apple.documentation/documentation/Swift/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 <doc://com.apple.documentation/documentation/Swift/true> before calling the capture session’s ``doc://com.apple.avfoundation/documentation/AVFoundation/AVCaptureSession/startRunning()`` method.

---

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)