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

# smoothedSceneDepth

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

```
static var smoothedSceneDepth: 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 pictured in the frame’s [`capturedImage`](/documentation/ARKit/ARFrame/capturedImage). ARKit samples this distance using the LiDAR scanner and provides the results through the [`smoothedSceneDepth`](/documentation/ARKit/ARFrame/smoothedSceneDepth) property on the session’s [`currentFrame`](/documentation/ARKit/ARSession/currentFrame).

To minimize the difference in LiDAR readings across frames, ARKit processes the data as an average. The averaged readings reduce flickering to create a smoother motion effect when depicting objects with depth, as demonstrated in [Creating a fog effect using scene depth](/documentation/ARKit/creating-a-fog-effect-using-scene-depth). Alternatively, to access a discrete LiDAR reading at the instant the framework creates the current frame, use [`sceneDepth`](/documentation/ARKit/ARFrame/sceneDepth).

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)