Some iPhone models have OIS that lets you take sharp photos even if you accidentally move the camera.
With OIS, a gyroscope senses that the camera moved.
The OIS and closed-loop AF systems in iPhone are designed for durability.
Further, closed-loop AF is available on iPhone XS and later, including iPhone SE (2nd generation).
source: www.techworm.net