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
Restrict swipe gesture to a certain area #16
Comments
Since SwipeViewController subclasses UIPageViewController it should be possible. Try looking at this code: https://gist.github.com/TosinAF/805a22ab5a3e4ffe17a8/ |
Okay, but if I need tableView gestures to work? How realize it? |
I have not tried this myself, but please do try to use the gist I shared above. You can implement part of it in |
In SwipeViewController.swift open var isSwiping = true inside func setPageController() pageController.delegate = self
if isSwiping {
pageController.dataSource = self
} In YourViewController: SwipeViewController where you want to disable swipe isSwiping = false |
Hmm, interesting solution, I will take a look at it tomorrow. This is for disabling swiping for one |
Yes, it is for disabling the whole ViewController. I needed just it:) |
What if I want to disable swiping in ViewController: UIViewController not ViewController: SwipeViewController |
@SeasiaInhouse, could you please describe your problem more thoroughly? Thanks. |
Is there any way to restrict the pan/swipe to a certain area? I'd like to leave the bottom part of my view as an area where it ignores the gesture. Is it doable?
The text was updated successfully, but these errors were encountered: