smoothedSceneDepth
An average of distance measurements between a device’s rear camera and real-world objects that creates smoother visuals in an AR experience.
Declaration
var smoothedSceneDepth: ARDepthData? { get }Discussion
This property describes the distance between a device’s camera and objects or areas in the real world, including ARKit’s confidence in the estimated distance. This is similar to sceneDepth except that the framework smoothes the depth data over time to lessen its frame-to-frame delta.
This property is nil by default. Add the smoothedSceneDepth frame semantic to your configuration’s frameSemantics to instruct the framework to populate this value with ARDepthData captured by the LiDAR scanner.
Call supportsFrameSemantics(_:) on your app’s configuration to support smoothed scene depth on select devices and configurations.