I am trying to make a View that acts like Apple's springboard (Where all the apps are) so I can swipe to the right or left and show another set of items. I'm mainly having issues with the constraints and getting all the icons to appear normally across all screen sizes. I'm using just a basic UIView controller to try and accomplish this. What is the best way to use constraints with an array of images like Apple's springboard?
Thanks for your help.
In the storyboard, I have dragged a
UIPageViewControllerand twoUIViewController. I have subclassedUIPageViewControllertoMyPageViewController.The rest is done by code in MyPageViewController.swift:
(where
page1andpage2are the two other UIViewController of your storyboard)In case you wonder how to get page1 (after setting an identifier in storyboard):