How to find out if the iOS camera is working and not being adjusted

We are creating an application in which we need to show one of the following states:

  • focused
  • focusing (adjustment),
  • not focused.

It seems that when you move the camera, the camera will not try to adjust until you stop moving. So how to determine this condition?

+4
source share
1 answer

You can use the adjustingFocus property of AVCaptureDevice to accomplish what you mentioned. More information on this can be found here .

+1
source

Source: https://habr.com/ru/post/1446218/


All Articles