Use the session.state
instead of session.isAutoCaptureEnabled.toggle
to check the current capture state.
Implement a full scanning workflow for capturing objects on iOS devices.
- Note: This sample code project is associated with WWDC24 session 10107: Discover area mode for Object Capture.
You need to run this sample code project on a physical device. It does not compile for Simulator.
To run this sample app, you need an iPhone or iPad with the following:
- A LiDAR Scanner
- An A14 Bionic chip or later
- iOS or iPadOS 18 or later