Skip to content

raykle/CHIPageControl

 
 

Repository files navigation

CHIPageControl

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.0.1'

Carthage

use Carthage with Cartfile

github "ChiliLabs/CHIPageControl" ~> 0.0.1

Usage

🎨 Storyboards

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

💻 Code

let pageControl = CHIPageControlAji(frame: CGRect(x: 0, y:0, with: 100, height: 20))
pageControl.numberOfPages = 4
pageControl.radius = 4
pageControl.tintColor = .red
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.

About

A set of cool animated page controls written in Swift to replace boring UIPageControl.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 95.1%
  • Objective-C 3.0%
  • Ruby 1.9%