A flexible UIPageControl like Instagram. Link
- Name: InsPageControl
- Language: Objective-C
Purpose: Objective-C project also can use it
For installing with CocoaPods, add it to your Podfile
.
pod "InsPageControl"
let pageControl = PageControl()
pageControl.numberOfPages = 10
view.addSubview(pageControl)
pageControl.config = Config(displayCount: 7, dotSize: 6, dotSpace: 4, smallDotSizeRatio: 0.5, mediumDotSizeRatio: 0.7)
func scrollViewDidScroll(_ scrollView: UIScrollView) {
pageControl.setProgress(contentOffsetX: scrollView.contentOffset.x, pageWidth: scrollView.bounds.width)
}
Licence MIT