TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Mar 2016 |
SPMSupports SPM | ✗ |
Maintained by oOatuo.
Inspired by Bilibili:
Demo:
Clone this repo and throw the source files under Classes
folder into your project to use it.
import GuttlerPageControl
// Just init with position and numOfpage
let guttlerPageControl = GuttlerPageControl(center: view.center, pages: numOfpage)
// Must bind pageControl with the scrollView
guttlerPageControl.bindScrollView = scrollView
// Just invoke scrollWithScrollView(_:) in scrollViewDidScroll(_:)
func scrollViewDidScroll(scrollView: UIScrollView) {
guttlerPageControl.scrollWithScrollView(scrollView)
}
Thanks for onevcat's RandomColorSwift, It's wonderful.
This project is licensed under the terms of the MIT license.