GuttlerPageControl 0.1.1

GuttlerPageControl 0.1.1

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Mar 2016
SPMSupports SPM

Maintained by oOatuo.



Guttler Page Control (Swift)

Inspired by Bilibili:

bilibili

Demo:

demo

Install

Manually

Clone this repo and throw the source files under Classes folder into your project to use it.

Example

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

Acknowledgements

Thanks for onevcat's RandomColorSwift, It's wonderful.

License

This project is licensed under the terms of the MIT license.