Skip to content

Instantly share code, notes, and snippets.

@jstart
Created August 15, 2016 22:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jstart/8078a742378be368fd22901595a38a58 to your computer and use it in GitHub Desktop.
Save jstart/8078a742378be368fd22901595a38a58 to your computer and use it in GitHub Desktop.
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!)
@rashdan
Copy link

rashdan commented Feb 16, 2018

Dear where is your ViewPager class it is incomplete code
Please try to share complete and avoid to share incomplete code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment