diff --git a/CHIPageControl.podspec b/CHIPageControl.podspec index 0bfb59d..df98bdb 100644 --- a/CHIPageControl.podspec +++ b/CHIPageControl.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'CHIPageControl' - s.version = '0.0.2' + s.version = '0.0.3' s.summary = 'CHIPageControl is a set of cool animated page controls written in Swift to replace boring UIPageControl.' s.ios.deployment_target = '8.0' diff --git a/CHIPageControl/CHIPageControlAji.swift b/CHIPageControl/CHIPageControlAji.swift index d3388c9..08cd075 100644 --- a/CHIPageControl/CHIPageControlAji.swift +++ b/CHIPageControl/CHIPageControlAji.swift @@ -43,7 +43,6 @@ open class CHIPageControlAji: CHIBasePageControl { } override func updateNumberOfPages(_ count: Int) { - inactive.forEach() { $0.removeFromSuperlayer() } inactive = [CHILayer]() inactive = (0.. 'https://github.com/ChiliLabs/CHIPageControl.git' + pod 'CHIPageControl', :path => '../' end diff --git a/README.md b/README.md index 3c86223..5a81448 100644 --- a/README.md +++ b/README.md @@ -25,13 +25,13 @@ Just add the `CHIPageControl` folder to your project. use [CocoaPods](https://cocoapods.org) with Podfile: ``` ruby -pod 'CHIPageControl', '~> 0.0.2' +pod 'CHIPageControl', '~> 0.0.3' ``` ### Carthage use [Carthage](https://github.com/Carthage/Carthage) with Cartfile ```ogdl -github "ChiliLabs/CHIPageControl" ~> 0.0.2 +github "ChiliLabs/CHIPageControl" ~> 0.0.3 ``` @@ -45,6 +45,7 @@ let pageControl = CHIPageControlAji(frame: CGRect(x: 0, y:0, with: 100, height: pageControl.numberOfPages = 4 pageControl.radius = 4 pageControl.tintColor = .red +pageControl.currentPageTintColor = .green pageControl.padding = 6 ``` ### Updating progress