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

# sceneDepth

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

```
static var sceneDepth: ARConfiguration.FrameSemantics { get }
```

## Discussion

Enable this option on a world-tracking configuration ([`ARWorldTrackingConfiguration`](/documentation/ARKit/ARWorldTrackingConfiguration)) to instruct ARKit to provide your app with the distance between the user’s device and the real-world objects in the camera feed. ARKit samples this distance using the LiDAR scanner and provides the results through the [`sceneDepth`](/documentation/ARKit/ARFrame/sceneDepth) property on the session’s [`currentFrame`](/documentation/ARKit/ARSession/currentFrame).

ARKit creates this object from LiDAR readings at same time as the current frame. The data in [`sceneDepth`](/documentation/ARKit/ARFrame/sceneDepth) reflects the distance from the device to real-world objects pictured in the frame’s [`capturedImage`](/documentation/ARKit/ARFrame/capturedImage). Alternatively, ARKit provides a [`smoothedSceneDepth`](/documentation/ARKit/ARConfiguration/FrameSemantics-swift.struct/smoothedSceneDepth) property that minimizes the difference in LiDAR readings across frames.

ARKit supports scene depth only on LiDAR-capable devices, so call [`supportsFrameSemantics(_:)`](/documentation/ARKit/ARConfiguration/supportsFrameSemantics(_:)) to ensure device support before attempting to enable scene depth.

---

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)