Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom tap to focus gesture #124

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

fernandomatal
Copy link

As the basic function of the framework is to add the camera view on top of everything, sometimes the developer needs to call a [self.view bringSubviewToFront: contentView] in order to get their camera buttons or custom views on top, this sometimes can interfere with the focus to tap gesture implemented by default.

I added a method called focusViewWithGesture which basically sends the implemented gesture recognizer, tests if it's inside the preview view's frame and in case this is positive, then sends the data to previewTapped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant