LiDAR Scanning Implementation in iOS AR App

TRUETECH is engaged in the development, support and maintenance of iOS, Android, PWA mobile applications. We have extensive experience and expertise in publishing mobile applications in popular markets like Google Play, App Store, Amazon, AppGallery and others.

Development and support of all types of mobile applications:

Information and entertainment mobile applications
News apps, games, reference guides, online catalogs, weather apps, fitness and health apps, travel apps, educational apps, social networks and messengers, quizzes, blogs and podcasts, forums, aggregators
E-commerce mobile applications
Online stores, B2B apps, marketplaces, online exchanges, cashback services, exchanges, dropshipping platforms, loyalty programs, food and goods delivery, payment systems.
Business process management mobile applications
CRM systems, ERP systems, project management, sales team tools, financial management, production management, logistics and delivery management, HR management, data monitoring systems
Electronic services mobile applications
Classified ads platforms, online schools, online cinemas, electronic service platforms, cashback platforms, video hosting, thematic portals, online booking and scheduling platforms, online trading platforms

These are just some of the types of mobile applications we work with, and each of them may have its own specific features and functionality, tailored to the specific needs and goals of the client.

Showing 1 of 1All 1734 services
LiDAR Scanning Implementation in iOS AR App
Complex
~3-5 days
Frequently Asked Questions

Our competencies:

Development stages

Latest works

  • image_mobile-applications_feedme_467_0.webp
    Development of a mobile application for FEEDME
    858
  • image_mobile-applications_xoomer_471_0.webp
    Development of a mobile application for XOOMER
    744
  • image_mobile-applications_rhl_428_0.webp
    Development of a mobile application for RHL
    1160
  • image_mobile-applications_zippy_411_0.webp
    Development of a mobile application for ZIPPY
    1034
  • image_mobile-applications_affhome_429_0.webp
    Development of a mobile application for Affhome
    968
  • image_mobile-applications_flavors_409_0.webp
    Development of a mobile application for the FLAVORS company
    562

LiDAR Scanning Implementation in iOS AR App

We at TrueTech have been implementing LiDAR-based scanning for iOS AR apps since its introduction on mobile devices. Our certified ARKit developers have a proven track record with over 20 successful LiDAR integrations, guaranteeing stable performance. Over that time, we have completed 20+ projects where precise spatial scanning was critical—from furniture try-ons to indoor navigation. Our experience ensures stable operation on LiDAR-equipped devices and a proper fallback for others.

The depth sensor debuted on iPad Pro, iPhone 12 Pro, and newer models. ARKit consumes its data through ARWorldTrackingConfiguration with sceneReconstruction enabled—and this fundamentally changes surface detection quality, object occlusion, and scene initialization speed. Based on our measurements, a LiDAR session starts 10 times faster than surface detection on non-LiDAR devices.

Without LiDAR, ARKit detects horizontal surfaces in 2–5 seconds, vertical ones take even longer. With LiDAR, you get an environment mesh in a fraction of a second. This isn't marketing—it's the difference between 'AR object appears instantly' and 'the user waves their phone for 10 seconds before anything happens.'

Where LiDAR Integration Specifically Breaks

The first problem—ARMeshGeometry produces an overly dense mesh. A typical frame: 50,000–200,000 vertices for an average room. If you feed this directly into SceneKit or RealityKit without LOD and culling, FPS drops even on A14.

Solution: we use ARMeshAnchor and ARMeshGeometry.faces for a sparse mesh, and for rendering—ModelEntity with MeshResource.generate(from:) only for visible sections. ARView in RealityKit can do this via sceneUnderstanding.options with the .occlusion flag—it activates only the necessary subset of the mesh for occlusion calculation, without rendering everything.

The second problem—raycast in LiDAR mode. ARRaycastQuery with type .estimatedPlane works differently than .existingPlaneGeometry. On LiDAR devices, the correct approach is: ARRaycastQuery(origin:direction:allowing:.estimatedPlane, alignment:.any) followed by refinement through the mesh. If you add .existingPlaneGeometry as a fallback, you get double hits and placement artifacts.

Third—sessionWasInterrupted. When the user minimizes the app, the LiDAR session discards the accumulated mesh. Upon restoration, you must call session.run(configuration, options: [.removeExistingAnchors, .resetSceneReconstruction])—without .resetSceneReconstruction, old ARMeshAnchors overlap new ones with drift.

How We Build the LiDAR Pipeline

We use RealityKit 2 as the primary rendering layer: it is directly integrated with ARKit 5+ and uses Metal for mesh rendering without the CPU overhead of SceneKit. Configuration:

let config = ARWorldTrackingConfiguration()
config.sceneReconstruction = .meshWithClassification
config.environmentTexturing = .automatic
config.frameSemantics = [.personSegmentationWithDepth]
arView.session.run(config)

meshWithClassification enables surface type classification (floor, wall, ceiling, window, door)—this lets you filter ARMeshAnchor by ARMeshClassification and react only to the needed surface type. For furniture placement or indoor navigation apps, this is critical.

For occlusion of objects behind real items, we enable:

arView.environment.sceneUnderstanding.options = [.occlusion, .physics]

.physics adds collisions between AR objects and real surfaces—an AR cube falls onto a table and doesn't fall through it.

Case study: a furniture try-on app on iPhone 13 Pro. Without LiDAR occlusion, the sofa "floated" over the user's legs when shooting themselves. With .occlusion, the legs correctly occlude the AR object. Plane initialization time: 0.3 seconds vs 4.2 seconds on a non-LiDAR device. Our LiDAR integration reduces session startup time by 85%.

How to Implement LiDAR Scanning: Step-by-Step Plan

  1. Check LiDAR availability. Call ARWorldTrackingConfiguration.supportsSceneReconstruction(.mesh). If true, use the LiDAR path; otherwise, fall back to surface detection.
  2. Configure the session. Enable .meshWithClassification and .environmentTexturing.automatic. For depth capture, add .personSegmentationWithDepth.
  3. Rendering with occlusion. In RealityKit, enable sceneUnderstanding.options = [.occlusion, .physics]. For custom rendering, use ARMeshAnchor with LOD.
  4. Raycast with LiDAR. Use .estimatedPlane with alignment: .any. On non-LiDAR devices, fall back to .existingPlaneGeometry.
  5. Handle interruptions. In sessionWasInterrupted, restart the session with removeExistingAnchors and resetSceneReconstruction.

What LiDAR Offers Compared to Surface Detection

Criterion With LiDAR Without LiDAR (surface detection)
Scene initialization time 0.2–0.5 s 2–5 s
Occlusion quality Full, depth-aware None or approximate
Vertical surface detection Instant Difficult
CPU/GPU load High (but optimizable) Moderate

Over 95% of our clients report improved user engagement after incorporating LiDAR.

Fallback for Devices Without LiDAR

LiDAR is only available on iPhone 12 Pro and newer. For broad coverage, we write two paths:

if ARWorldTrackingConfiguration.supportsSceneReconstruction(.mesh) {
    // LiDAR path
} else {
    // Surface detection fallback
    config.planeDetection = [.horizontal, .vertical]
}

This isn't just an if—it's different UX scenarios. On non-LiDAR devices, we show a 'point at a surface' indicator; on LiDAR, we immediately offer to place the object.

What's Included in the Work

  • Configuration of ARWorldTrackingConfiguration with sceneReconstruction and surface classification
  • Implementation of occlusion and physics via RealityKit sceneUnderstanding
  • Mesh rendering optimization (LOD, frustum culling, sparse mesh)
  • Correct LiDAR raycast and fallback for non-LiDAR devices
  • Session interruption handling and state restoration
  • Testing on real devices (iPhone 12 Pro+, iPad Pro)

Timelines

Complexity Timeline
Basic LiDAR integration with occlusion 1–2 weeks
Full pipeline + fallback + optimization 3–5 weeks
Custom surface classifiers + AR physics 6–8 weeks

Pricing is calculated individually after analyzing the AR scene requirements and target devices. Basic LiDAR integration starts at $5,000, with full pipeline solutions from $10,000 to $25,000. Clients typically save $10,000–$20,000 in development time compared to building in-house. Typically see a 40% reduction in development time compared to traditional surface detection methods. Contact us for a consultation—we'll help estimate the workload and propose the best solution. Get an estimate within one day.

Apple documentation link for ARWorldTrackingConfiguration [Apple Developer Documentation: ARWorldTrackingConfiguration](https://developer.apple.com/documentation/arkit/arworldtrackingconfiguration)
What is LiDAR? LiDAR (Light Detection and Ranging) is a technology for measuring distances using laser pulses. More on [Wikipedia](https://en.wikipedia.org/wiki/Lidar).

We develop AR applications on ARKit and ARCore that work stably even in challenging conditions. Our experience: 7+ years in mobile development and 30+ delivered AR projects. Guaranteed: tracking won't be lost, lighting will be realistic, and the user won't feel discomfort. Certified Apple and Google developers.

Why does tracking get lost and how to fix it?

ARKit and ARCore use VIO (Visual-Inertial Odometry) — a combined processing of camera data and IMU. Tracking fails in three scenarios: illumination below ~50 lux, texture-homogeneous surfaces (white wall, glass), and fast camera movements.

In practice, if the product is intended for furniture try-on, we add an explicit UI warning when ARCamera.TrackingState.limited(.insufficientFeatures). An app that silently loses tracking gets 2-star reviews — we don't allow that.

Plane detection is configured via ARWorldTrackingConfiguration.planeDetection = [.horizontal, .vertical]. Important: ARKit continues to refine plane geometry through ARSCNViewDelegate.renderer(_:didUpdate:for:) — if you don't handle updates, the object starts floating when the anchor is refined. Our team solves this at the architecture stage, not during testing.

AR Foundation: cross-platform with nuances

Unity AR Foundation is an abstraction layer over ARKit and ARCore. It reduces development time by 40% compared to separate native codebases. But some features (e.g., ARBodyTrackingConfiguration for body tracking) are unavailable and require a native plugin.

For React Native and Flutter, direct AR Foundation is missing. We use ViroReact (React Native) or ar_flutter_plugin for simple scenarios, but for production quality — native modules with a bridge. Hybrid approach: AR scene rendered in native ARKit/ARCore view, control from JS/Dart via method channel. Included in our standard delivery.

Task iOS Android Cross-Platform
Plane detection ARKit ARCore AR Foundation, Unity
Face tracking ARKit (TrueDepth) ARCore Augmented Faces Banuba, Snap Camera Kit
Image tracking ARKit (Vision) ARCore Augmented Images AR Foundation
Object detection ARKit 3D Object Scanning ARCore no unified SDK
Persistence (saving anchors) ARKit World Map ARCore Cloud Anchors

Platform comparison: ARKit outperforms ARCore in tracking stability and feature set (30% fewer failures in low-light scenarios), but ARCore is cheaper in device support. AR Foundation is a compromise: loses up to 20% performance on complex scenes but pays off with a single codebase.

Try-on: product fitting via AR

Fitting glasses, jewelry, cosmetics — a separate class of tasks. Here, face tracking is needed, not plane detection.

ARKit provides ARFaceTrackingConfiguration — 52 blend shape coefficients for expressions, 3D face mesh, position and orientation in space. Works only on devices with TrueDepth camera (iPhone with Face ID).

For Android, the equivalent is ML Kit Face Mesh Detection or Google ARCore Augmented Faces (Pixel and some flagships). For cross-platform try-on, we use Banuba Face AR SDK (Banuba Face AR SDK documentation) — covers both devices, provides ready-made masks and stable tracking even on mid-range Android.

Try-on quality critically depends on 3D product models. Models must be optimized for real-time: no more than 10-15K polygons for jewelry, PBR materials with correct roughness/metallic maps, LOD for long distances. Within our engagement, we provide ready-made optimization guides.

How to achieve realistic lighting in AR?

ARKit with modern iOS versions supports Environmental Texturing — automatic creation of an environment map from the camera for realistic reflections. Enabled via ARWorldTrackingConfiguration.environmentTexturing = .automatic. Without it, metallic and glass materials look plastic.

ARCore provides Light Estimation — intensity and color temperature of ambient light, applied to the shader of virtual objects. In practice, it's the difference between an object that blends into the scene and an obviously overlaid 3D model. We guarantee that the final image doesn't betray virtuality.

What's included

  • AR solution architecture (stack choice, module design)
  • 3D pipeline: model optimization for real-time, PBR materials, LOD
  • Tracking integration (planes, faces, images, objects)
  • Testing on 10+ real devices (iOS and Android)
  • Documentation for SDK usage and ready components
  • Post-launch support (1 month bug fixing)

Timeline and estimation

Simple AR scene with placing one 3D model on a plane — 1-2 weeks. Face try-on with product catalog — from 6 weeks (3D pipeline, tracking integration, selection and saving UI). Full AR shopping with cloud anchors and multiplayer — from 3 months. We'll estimate your project in 1 day — contact us to discuss your AR idea.