jstart
8/15/2016 - 10:01 PM

PageControlExample.swift

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!)