Last active
April 1, 2016 17:28
-
-
Save funkyboy/a861ecde2ce84bbb373069c58bc3e1c5 to your computer and use it in GitHub Desktop.
Safe but unreadable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| func pageViewController(pageViewController: UIPageViewController, | |
| viewControllerBeforeViewController viewController: UIViewController) -> UIViewController? { | |
| guard let viewControllerIndex = orderedViewControllers.indexOf(viewController) where viewControllerIndex > 0 else { | |
| return nil | |
| } | |
| return orderedViewControllers[viewControllerIndex - 1] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment