Latest 0.1.3
Homepage https://github.com/ChiliLabs/CHIPageControl
License MIT
Platforms ios 8.0, tvos 9.0
Authors

CHIPageControl is a set of cool animated page controls to replace boring UIPageControl.
We were inspired by Jardson Almeida dribbble shot and implemented a few more page controls.

Made with ❤️ by Chili.

Overview

Requirements

  • iOS 9.0+
  • Xcode 8+
  • Swift 3

Installation

Manually

Just add the CHIPageControl folder to your project.

CocoaPods

use CocoaPods with Podfile:

pod 'CHIPageControl', '~> 0.1.3'

# individual page control
pod 'CHIPageControl/Aji'
pod 'CHIPageControl/Aleppo'
pod 'CHIPageControl/Chimayo'
pod 'CHIPageControl/Fresno'
pod 'CHIPageControl/Jalapeno'
pod 'CHIPageControl/Jaloro'
pod 'CHIPageControl/Paprika'
pod 'CHIPageControl/Puya'

Carthage

use Carthage with Cartfile

github "ChiliLabs/CHIPageControl" ~> 0.1.3

Usage

🎨 Storyboards

Just drop UIView and set its class to be one of CHIPageControls.

💻 Code

let pageControl = CHIPageControlAji(frame: CGRect(x: 0, y:0, width: 100, height: 20))
pageControl.numberOfPages = 4
pageControl.radius = 4
pageControl.tintColor = .red
pageControl.currentPageTintColor = .green
pageControl.padding = 6

Updating progress

//update dynamically
pageControl.progress = 0.5

//set progress with animation
pageControl.set(progress: 2, animated: true)

Page Controls 🌶️🌶️🌶️

CHIPageControlAji

CHIPageControlAleppo

CHIPageControlChimayo

CHIPageControlFresno

CHIPageControlJalapeno

CHIPageControlJaloro

CHIPageControlPaprika

CHIPageControlPuya

License

CHIPageControl is released under the MIT license. See LICENSE for details.

Latest podspec

{
    "name": "CHIPageControl",
    "version": "0.1.3",
    "summary": "CHIPageControl is a set of cool animated page controls written in Swift to replace boring UIPageControl.",
    "platforms": {
        "ios": "8.0",
        "tvos": "9.0"
    },
    "homepage": "https://github.com/ChiliLabs/CHIPageControl",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Chili": "[email protected]"
    },
    "source": {
        "git": "https://github.com/ChiliLabs/CHIPageControl.git",
        "tag": "0.1.3"
    },
    "source_files": [
        "CHIPageControl/*.swift",
        "CHIPageControl/Core/*.swift"
    ],
    "pushed_with_swift_version": "3.0",
    "subspecs": [
        {
            "name": "Aji",
            "source_files": [
                "CHIPageControl/CHIPageControlAji.swift",
                "CHIPageControl/Core/*.swift"
            ]
        },
        {
            "name": "Aleppo",
            "source_files": [
                "CHIPageControl/CHIPageControlAleppo.swift",
                "CHIPageControl/Core/*.swift"
            ]
        },
        {
            "name": "Chimayo",
            "source_files": [
                "CHIPageControl/CHIPageControlChimayo.swift",
                "CHIPageControl/Core/*.swift"
            ]
        },
        {
            "name": "Fresno",
            "source_files": [
                "CHIPageControl/CHIPageControlFresno.swift",
                "CHIPageControl/Core/*.swift"
            ]
        },
        {
            "name": "Jalapeno",
            "source_files": [
                "CHIPageControl/CHIPageControlJalapeno.swift",
                "CHIPageControl/Core/*.swift"
            ]
        },
        {
            "name": "Jaloro",
            "source_files": [
                "CHIPageControl/CHIPageControlJaloro.swift",
                "CHIPageControl/Core/*.swift"
            ]
        },
        {
            "name": "Paprika",
            "source_files": [
                "CHIPageControl/CHIPageControlPaprika.swift",
                "CHIPageControl/Core/*.swift"
            ]
        },
        {
            "name": "Puya",
            "source_files": [
                "CHIPageControl/CHIPageControlPuya.swift",
                "CHIPageControl/Core/*.swift"
            ]
        }
    ]
}

Pin It on Pinterest

Share This