I\'m trying to utilize a UIPageViewController in a Swift app with multiple view controllers. I have 2 view controllers on my storyboard (firstViewControll
UIPageViewController
firstViewControll
Please be aware that this code will only work with two ViewController. If you are planning on using more you have to change the line:
ViewController
self.index = self.index + 1
Found at the before and after call, to:
self.index = index + 1
To call the current ViewController index.