-
Notifications
You must be signed in to change notification settings - Fork 107
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
Disable UIPanGesture on specific UIView #95
Comments
I don't think that's possible with the current API but it seems like a feature users will be interested since a lot of views would be better off ignoring that gesture (UICollectionView, MKMapView). I can take a look at it in the upcoming weeks or help you out if you plan to draft a PR. |
I would love to make a PR! :-) |
Great, let me know if you need a hand with that. Ideally, we'll just find a way to select many views from different screens that will ignore the swiping gesture but I don't have a nice way of achieving that yet. |
I'm thinking of turning this line: Into this: Then in the UITabBarController we can set the delegate of the
|
@marcosgriselli what do you think? |
Sure, let's go that way. If we ever need to expand its use case we can search for another approach. |
@JMCPH, @marcosgriselli maybe we should build upon that: #103. And add new case |
@borut-t I don't see a benefit on adding a We can extend views to have a property (associated object) that determines if swiping is enabled for that specific view and then check for it on |
Yeah, my bad. |
Would it be possible to disable pan gesture for a specific UIView inside a UIViewController?
As the UIPanGestureRecognizer is private, it's not possible to do the following:
The text was updated successfully, but these errors were encountered: