I have close to 8 view controllers , Each and every view controller has next and back button . How could I do left and right transitions here through swift code . To be more specific on tapping back , previous view controller should slide from left and on tapping next , the next view controller should slide from right.
I am pretty new to iOS development , Any help would be really appreciable.
Thanks In Advance
You should be able to do it using
UIPageViewControllercombining it with its delegate.However, I'm gonna shamelessly point you to my open source project of custom container with interactive transitions - InteractiveTransitioningContainer. While it aims at allowing to implement an interactive container (as an example it includes a container that allows swiping through viewControllers the way as
UIPageViewControllerworks), you can use theSwipeToSlideInteractiveTransitioningContainerclass to achieve what you want:You can install it using Cocoa pods. Any feedback welcome :).