You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are a couple of buttons on the overlay, and they work fine. But when I click on any other location on the screen, the click passes through to the focus view - bypassing the buttons (take picture, flash, reverse).
(the buttons I'm adding on on the bottom left and on the right side of the screen)
The text was updated successfully, but these errors were encountered:
Hi @kwerle
In the case, the cameraOverlayView will be the hit-test view always. So when you click on any other location, the touchesBegan of the DKCamera will be called. To solve this, you have to override your cameraOverlayView's hitTest method like so:
I recommend you rename this PassthroughView and include it in the framework. It's super handy and it's what most developers are going to want to use or subclass if they do an overlay.
I've added an overlay that covers the whole screen (ios):
There are a couple of buttons on the overlay, and they work fine. But when I click on any other location on the screen, the click passes through to the focus view - bypassing the buttons (take picture, flash, reverse).
(the buttons I'm adding on on the bottom left and on the right side of the screen)
The text was updated successfully, but these errors were encountered: