Glossary

What is LiDAR on iPhone?

LiDAR, short for light detection and ranging, is a scanner that measures distance by timing how long light takes to bounce back from things. Apple first put a LiDAR Scanner in iPad Pro and then in iPhone 12 Pro in 2020, and on iPhone it came to the Pro line rather than to every model. Apps reach it through ARKit, which uses it to understand the depth and shape of a room.

More about LiDAR

Apple says the scanner measures the distance to surrounding objects up to 5 meters away, indoors and outdoors. ARKit turns its readings into a depth for each point of the camera image and, when an app asks, into a mesh: a rough 3D shape of the room's surfaces. When the scanner arrived, Apple said every existing ARKit app got instant AR placement on the new hardware, with no change to its code. The camera uses the same scanner to focus faster in low light.

An example

Measuring shows the difference. On an iPhone without LiDAR, an AR tape measure asks you to sweep the camera across the floor until it finds a surface; on a Pro model it finds the floor almost at once, ready for a line between two corners. Apple's own Measure app gives its best results on objects about half a meter to 3 meters away, and calls its measurements approximate.

A common misunderstanding

LiDAR isn't what makes AR possible on iPhone, and an app shouldn't depend on it. AR runs on the camera and motion sensors of iPhones without the scanner; LiDAR makes it quicker and adds depth. An app that works only with LiDAR shuts out everyone with a standard iPhone, so a good one checks for the scanner and uses it when it is there.

In a Borel app

Like every AR feature, LiDAR is tried on a real phone: the iPhone in your browser has no camera, let alone a depth scanner, so a Borel app shows a plain sentence there in place of the AR view. Build the rest of the app in the preview, then open it on a Pro iPhone to see the scanner at work, and on a standard one to check it still works without it. When you publish, one build serves both kinds of iPhone.

LiDAR with Borel

Ask for an AR app, such as a tape measure for furniture or a box you place on the floor, and Borel builds it in Swift with ARKit, which uses the LiDAR Scanner by itself on a Pro iPhone. The same app runs on iPhones without one, and Borel Companion puts it on your phone on Pro.

Sources: Apple Newsroom: Apple unveils new iPad Pro with breakthrough LiDAR Scanner (March 2020); Apple Newsroom: Apple introduces iPhone 12 Pro and iPhone 12 Pro Max with 5G (October 2020); Apple Developer: sceneReconstruction; Apple Support: Measure dimensions with iPhone. Checked .

Related terms

All glossary terms

Make your iPhone app in Borel

Describe it in your own words. Borel writes it in Swift, builds it on its own Mac and puts it on your iPhone.

Related on Borel