Home > OS >  Swift - UIPageController disable scrolling with touching pageIndicators
Swift - UIPageController disable scrolling with touching pageIndicators

Time:11-21

I want to disable the feature of scrolling with touching the page indicators and scroll to related page faster.

How can I disable pageControl's interaction?

See below gif to understand what I meant:

enter image description here

CodePudding user response:

I've disabled the pageControl user interaction to solve that gesture.

pageControl.isUserInteractionEnabled = false
  • Related