Constants to specify the autofocus range of a capture device.
- iOS 7.0+
- Mac Catalyst 13.0+
If you expect to focus primarily on near or far objects, you can use the
auto property to provide a hint to the focusing system. This approach makes autofocus faster, more power efficient, and less error prone. A restriction prioritizes focusing at distances in the specified range, but does not prevent focusing elsewhere if the device finds no focus point within that range.