ChiliLabs / CHIPageControl
- пятница, 17 марта 2017 г. в 03:11:53
Swift
A set of cool animated page controls written in Swift to replace boring UIPageControl.
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
Just add the CHIPageControl
folder to your project.
use CocoaPods with Podfile:
pod 'CHIPageControl', '~> 0.0.1'
use Carthage with Cartfile
github "ChiliLabs/CHIPageControl" ~> 0.0.1
Just drop UIView and set its class to be one of CHIPageControls.
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
//update dynamically
pageControl.progress = 0.5
//set progress with animation
pageControl.set(progress: 2, animated: true)
CHIPageControl is released under the MIT license. See LICENSE for details.