iPhone XR uses algorithms to simulate depth effects found on iPhone XS & XS Max
The iPhone XR's Camera app will offer the same sort of bokeh (depth-of-field) post-processing effects as the iPhone XS, but calculate depth "almost entirely" via algorithm when shooting with the rear camera, according to a newly-published interview.