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

A flexible PageControl like Instagram.

Carthage compatible
Swift 3.0.x

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

Initialize

let pageControl = FlexiblePageControl(
        pageCount: 10,
        dotSize: 6,
        dotSpace: 4
    )
view.addSubview(pageControl)

update page

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

Licence

Licence MIT

Latest podspec

{
    "name": "FlexiblePageControl",
    "version": "1.0.1",
    "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.1"
    },
    "source_files": [
        "FlexiblePageControl",
        "FlexiblePageControl/**/*.{h,m,swift}"
    ],
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This