Latest 1.0.5
Homepage https://github.com/shima11/FlexiblePageControl
License MIT
Platforms ios 8.0
Authors

A flexible UIPageControl like Instagram.

Carthage compatible
Swift 3.0.x
Support

OverView

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", :git => "https://github.com/shima11/FlexiblePageControl.git"
$ pod update

Usage

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

// Updated to the minimum size according to the displayCount
pageControl.updateViewSize()

Customize

pageControl.dotSize = 8
pageControl.dotSpace = 5

pageControl.displayCount = 8

pageControl.pageIndicatorTintColor = UIColor.gray
pageControl.currentPageIndicatorTintColor = UIColor.blue

Update page

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

or

pageControl.currentPage = page

Licence

Licence MIT

Latest podspec

{
    "name": "FlexiblePageControl",
    "version": "1.0.5",
    "summary": "FlexiblePageControl is flexible PageControl.",
    "description": "This Framework is flexible PageControl like Instagram.",
    "homepage": "https://github.com/shima11/FlexiblePageControl",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "shima": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/shima11/FlexiblePageControl.git",
        "tag": "1.0.5"
    },
    "source_files": [
        "FlexiblePageControl",
        "FlexiblePageControl/**/*.{h,m,swift}"
    ],
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This