Post

Replies

Boosts

Views

Activity

Reply to Volume Shutter Buttons for Camera Capture
I have been officially notified that this API was indeed in 17.2: AVCaptureEventInteraction Found here: https://developer.apple.com/documentation/avkit/avcaptureeventinteraction I am having a hard time figuring out the API. if #available(iOS 17.2, *) { let x = AVCaptureEventInteraction { event in print ("AVCaptureEventInteraction Fired") } } What do I attach the interaction to?
Dec ’23
Reply to Volume Shutter Buttons for Camera Capture
Oh wow, look at that! Yes, this is why I was looking for an official answer on this. We do not have anywhere else to go for this. Do comments section is the first place I went to. As you mentioned, it says that UIInteraction is used to register actions triggered by system capture events and should be attached to views in the responder chain. And the for handler, it says that it is called when either the primary or secondary events are triggered. This is all that exsists on this. No more documentation or sample code. I will be experimenting and will update whatever I find. This API is significant for developers of 3rd party camera apps, we had to go around many limitations to mimic this action.
Dec ’23