Is there a way to programmatically switch to next or previous page?
Is there a way to programmatically switch to next or previous page?
SwipeViewController is a subclass of UIPageViewController, so it should work the same. Let me know how it goes.
Wanted to try that be doing something like the following, but don't have access to the underlying "pageController"
pageController.setViewControllers([myViewController], direction: .forward, animated: true, completion: nil)
I thought SwipeViewController was subclass of UINavigationController that contains a UIPageViewController and access to the underlying "pageController" is not allowed.
You're right, I'm on a vacation now, so I'd suggest to either just open the underlying pageController, and I'll later look into it, or, which I would obviously prefer, create a PR where you would create a function to turn to the next page programmatically while keeping the pageController internal to the SwipeViewController.
Will do. Thanks!