shima11
FlexiblePageControl
Swift

A flexible UIPageControl like Instagram.

Last updated May 27, 2026
799
Stars
105
Forks
16
Issues
0
Stars/day
Attention Score
55
Language breakdown
Swift 88.9%
Ruby 7.2%
Objective-C 3.9%
โ–ธ Files click to expand
README

FlexiblePageControl

A flexible UIPageControl like Instagram.

Carthage compatible Swift 4.2.x Support

OverView

Install

Carthage

For Installing with Carthage, add it to your Cartfile.


github &quot;shima11/FlexiblePageControl&quot;</code></pre>

$ carthage update</code></pre>

CocoaPods

For installing with CocoaPods, add it to your Podfile.

pod "FlexiblePageControl"
$ pod update

Usage


let pageControl = FlexiblePageControl()
pageControl.numberOfPages = 10
view.addSubview(pageControl)</code></pre>

Customize


// color
pageControl.pageIndicatorTintColor = color1
pageControl.currentPageIndicatorTintColor = color2

// size let config = FlexiblePageControl.Config( displayCount: 7, dotSize: 6, dotSpace: 4, smallDotSizeRatio: 0.5, mediumDotSizeRatio: 0.7 )

pageControl.setConfig(config)</code></pre>

Update page


func scrollViewDidScroll(_ scrollView: UIScrollView) {
    pageControl.setProgress(contentOffsetX: scrollView.contentOffset.x, pageWidth: scrollView.bounds.width)
}</code></pre>
or

pageControl.setCurrentPage(at: page)</code></pre>

Licence

Licence MIT

ยฉ 2026 GitRepoTrend ยท shima11/FlexiblePageControl ยท Updated daily from GitHub