---
title: personSegmentationWithDepth
framework: arkit
role: symbol
role_heading: Type Property
path: arkit/arconfiguration/framesemantics-swift.struct/personsegmentationwithdepth
---

# personSegmentationWithDepth

An option that indicates that people occlude your app’s virtual content depending on depth.

## Declaration

```swift
static var personSegmentationWithDepth: ARConfiguration.FrameSemantics { get }
```

## Discussion

Discussion The personSegmentationWithDepth frame semantic specifies that any person ARKit detects in the camera feed should occlude virtual content, depending on the person’s depth in the scene. When this option is enabled, ARKit sets the estimatedDepthData and segmentationBuffer properties to serve as a foundation for people occlusion. The standard renderers (ARView, and ARSCNView) use those properties to implement people occlusion for you. See frameSemantics for more information.

## See Also

### Occluding Virtual Content with People

- [personSegmentation](arkit/arconfiguration/framesemantics-swift.struct/personsegmentation.md)
