Created
August 15, 2016 22:01
-
-
Save jstart/8078a742378be368fd22901595a38a58 to your computer and use it in GitHub Desktop.
This file contains 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
var control = PageControl(categories: [.settings, .settings, .settings, .settings, .settings]) | |
// ViewPager is another class that basically wraps a UIScrollView, saving that one for the next article :D | |
let viewExpand = ViewPager(views: [pagerView(.red), pagerView(.blue), pagerView(.green), pagerView(.yellow), pagerView(.black)]) | |
control.delegate = viewExpand | |
control.selectIndex(0) | |
view.addSubview(control.stack!) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Dear where is your ViewPager class it is incomplete code
Please try to share complete and avoid to share incomplete code