Search code examples
iosswiftuipageviewcontroller

How to make a pageViewController scroll automatically?


I have a pageViewController and I want to make it change with its pages automatically. How can I do that?


Solution

  • Call this setViewControllers:direction:animated:completion: in the timer code