Intro PageViewController Photos
Tinder Firestore Swipe and Match
In this lesson, I would like to give everyone an introduction to the UIPageViewController component. This is quite a simple and straightforward UIKit class to us in an iOS application, but if you've never touched it before it might be confusing. For that reason, I'll give a quick introduction to how you set up a UIPageViewController and some individual photo pages. Enjoy.

Comments (8)
weare99
4 years ago
Why do you don’t using an collection view?
Cinquain
4 years ago
that video was fire!
TWei
4 years ago
长知识了
Dongjun Kim
4 years ago
Why do we need to override super.init(nibname: , bundle: ) ??
Cinquain
4 years ago
Brian is lit
majdjamaleddine@gmail.com
3 years ago
Hi Brian, can you please explain how index is grabbed through this code line: let index = self.controllers.firstIndex(where: {$0 == viewController}) func pageViewController(_ pageViewController: UIPageViewController, viewControllerBefore viewController: UIViewController) -> UIViewController? { let index = self.controllers.firstIndex(where: {$0 == viewController}) ?? -1 if index == 0 { return nil } return controllers[index - 1] }
Brian Voong
3 years ago
majdjamaleddine@gmail.com
3 years ago
Hi Brian, what is difference between 'CollectionView' (used in you Kindle app) and 'PageViewController'? How can we decide which of the ways to use for swiping pages? Thanks a bunch
Brian Voong
3 years ago
Guala
3 years ago
I really would like to know what super.init(nibName: nil, bundle: nil) serves for
Brian Voong
3 years ago
Guala
3 years ago
Thank you Brian!
HELP & SUPPORT