I would like to know if it's possible to receive notification about autofocus inside an iPhone application?
I.E, does it exist a way to be notified when autofocus starts, ends, if it has succeed or failed... ?
If so, what is this notification name ?
I find the solution for my case to find when autofocus starts / ends. It's simply dealing with KVO (Key-Value Observing).
In my UIViewController:
Documentation:
Swift 3
Set focus mode on your
AVCaptureDevice
instance:Add observer:
Override
observeValue
: