<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ARKit",
  "identifier" : "/documentation/ARKit/ARConfiguration/FrameSemantics-swift.struct",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "ARKit"
    ],
    "preciseIdentifier" : "c:@E@ARFrameSemantics"
  },
  "title" : "ARConfiguration.FrameSemantics"
}
-->

# ARConfiguration.FrameSemantics

Types of optional frame features you can enable in your app.

```
struct FrameSemantics
```

## Discussion

A frame semantic represents 2D information that ARKit extracts from a frame.

## Topics

### Creating a Feature

[`init(rawValue:)`](/documentation/ARKit/ARConfiguration/FrameSemantics-swift.struct/init(rawValue:))

Creates a frame semantics feature.

### Tracking Bodies in 2D

[`ARFrameSemanticBodyDetection`](/documentation/ARKit/ARConfiguration/FrameSemantics-swift.struct/bodyDetection)

An option that indicates that 2D body detection is enabled.

### Occluding Virtual Content with People

[`ARFrameSemanticPersonSegmentation`](/documentation/ARKit/ARConfiguration/FrameSemantics-swift.struct/personSegmentation)

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

[`ARFrameSemanticPersonSegmentationWithDepth`](/documentation/ARKit/ARConfiguration/FrameSemantics-swift.struct/personSegmentationWithDepth)

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

### Accessing Depth

[`ARFrameSemanticSceneDepth`](/documentation/ARKit/ARConfiguration/FrameSemantics-swift.struct/sceneDepth)

An option that provides the distance from the device to real-world objects viewed through the camera.

[`ARFrameSemanticSmoothedSceneDepth`](/documentation/ARKit/ARConfiguration/FrameSemantics-swift.struct/smoothedSceneDepth)

An option that provides the distance from the device to real-world objects, averaged across several frames.

### Disabling Features

[`ARFrameSemanticNone`](/documentation/ARKit/ARFrameSemantics/ARFrameSemanticNone)

An option that indicates no frame features are enabled.

## Relationships

### Conforms To

[`OptionSet`](/documentation/Swift/OptionSet)

[`SetAlgebra`](/documentation/Swift/SetAlgebra)

[`ExpressibleByArrayLiteral`](/documentation/Swift/ExpressibleByArrayLiteral)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Sendable`](/documentation/Swift/Sendable)

[`Equatable`](/documentation/Swift/Equatable)

---

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)