Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Swipe-to-Delete on rightest UITableViewController inside UIPageViewController

Looks like UIPageViewController prevent UITableView to get touch events. My table view is placed in rightest page, so there is no potential problem to recognize gesture.

Is there any solutions of this problem?

like image 630
k06a Avatar asked Mar 07 '26 21:03

k06a


1 Answers

Put this in your UIPageViewController's viewDidLoad function.

if let myView = view?.subviews.first as? UIScrollView {
    myView.canCancelContentTouches = false
}
like image 186
Abhinay Reddy Keesara Avatar answered Mar 10 '26 16:03

Abhinay Reddy Keesara



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!