I am implementing a straightforward gallery view controller where the app displays a small range of full-screen images that the user can scroll through. I\'m using UIPageViewCon
Why not use swift 3+ version of Zell B.'s answer
func presentationCount(for pageViewController: UIPageViewController) -> Int { return self.providerItemList?.providerItems?.count ?? 0 } func presentationIndex(for pageViewController: UIPageViewController) -> Int { return 0 }