uias / Pageboy

📖 A simple, highly informative page view controller
MIT License
1.99k stars 154 forks source link

Parent is not loading next view controller as like UiPageViewController #151

Closed aaasifrz9 closed 6 years ago

aaasifrz9 commented 6 years ago

Hi,

Parent view controller is not loading child next view controller as like UiPageViewController.

Can we load next/previous page when current page loads as like UIPagerViewController using PageBoy framework? If possible, please suggest how can we implement?

Thanks, Asif

msaps commented 6 years ago

@aaasifrz9 Pageboy uses UIPageViewController underneath for all page view controller logic. PageboyViewController is pretty much a wrapper around it that just provides a nicer data source and delegation improvements.

So the viewController(for: at:) data source function is called whenever the internal UIPageViewController asks for a view controller in pageViewController(viewControllerBefore:) or pageViewController(viewControllerAfter:). See PageboyViewController+Management.

msaps commented 6 years ago

Closing, please continue discussion in #144. Duplicate issues for comments aren't required please 👍