Popularity
6.1
Growing
Activity
3.0
Declining
552
16
87

Programming language: Swift
License: MIT License
Tags: UI     Pagination    
Latest version: v1.0.8

FlexiblePageControl alternatives and similar libraries

Based on the "Pagination" category

Do you think we are missing an alternative of FlexiblePageControl or a related project?

Add another 'Pagination' Library

README

FlexiblePageControl

A flexible UIPageControl like Instagram.

Carthage compatible Swift 4.2.x Support

OverView

[](demo.gif)

Install

Carthage

For Installing with Carthage, add it to your Cartfile.

github "shima11/FlexiblePageControl"
$ carthage update

CocoaPods

For installing with CocoaPods, add it to your Podfile.

pod "FlexiblePageControl"
$ pod update

Usage

let pageControl = FlexiblePageControl()
pageControl.numberOfPages = 10
view.addSubview(pageControl)

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)

Update page

func scrollViewDidScroll(_ scrollView: UIScrollView) {
    pageControl.setProgress(contentOffsetX: scrollView.contentOffset.x, pageWidth: scrollView.bounds.width)
}

or

pageControl.setCurrentPage(at: page)

Licence

Licence MIT