Also, a triangulation method would be used to get the distance between the iPhone and the object.
Further, the rear-facing 3D sensing capabilities would be used for augmented reality (AR) purposes.
Currently, iPhone 7 Plus, iPhone 8 Plus, and iPhone X models only have 2x zooming capabilities.
AR has always been the favorite subject of Apples CEO Tim Cook.
source: www.techworm.net