Instance Property


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 }


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.

See Also

Capturing Semantic Segmentation Mattes

var enabledSemanticSegmentationMatteTypes: [AVSemanticSegmentationMatte.MatteType]

An array of semantic segmentation matte types that the photo render pipeline can deliver.