Depth of Field has always had it's limitations whether you want to go Shallow or Deep, something else is usually lost. Maybe you wanted to get more depth of field but had to sacrifice shutter, aperture or ISO. The article below is about a newly developed technology (there are others, but...) that may end up in your cameras or at least your Smart Phone that lets you choose your Depth of Field... AFTER you take the picture.
https://spectrum.ieee.org/amp/depth-of-field-2665857766