Skip to content

Commit

Permalink
Merge pull request ChiliLabs#12 from ChiliLabs/issues/11
Browse files Browse the repository at this point in the history
  • Loading branch information
chili-ios authored Mar 22, 2017
2 parents 9b832e8 + a5a04f8 commit c7cf7dc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHIPageControl.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'CHIPageControl'
s.version = '0.0.4'
s.version = '0.0.5'
s.summary = 'CHIPageControl is a set of cool animated page controls written in Swift to replace boring UIPageControl.'

s.ios.deployment_target = '8.0'
Expand Down
2 changes: 1 addition & 1 deletion CHIPageControl/CHIPageControlJalapeno.swift
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ open class CHIPageControlJalapeno: CHIBasePageControl {
let stepProgress = progress - Double(currentPage)

if abs(self.lastPage - currentPage) > 1 {
self.lastPage = self.lastPage + (self.lastPage < currentPage ? 1 : -1)
self.lastPage = currentPage + (self.lastPage > currentPage ? 1 : -1)
}

var middleX = CGFloat(normalized)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Just add the `CHIPageControl` folder to your project.

use [CocoaPods](https://cocoapods.org) with Podfile:
``` ruby
pod 'CHIPageControl', '~> 0.0.4'
pod 'CHIPageControl', '~> 0.0.5'

# individual page control
pod 'CHIPageControl/Aji'
Expand All @@ -41,7 +41,7 @@ pod 'CHIPageControl/Puya'

use [Carthage](https://github.com/Carthage/Carthage) with Cartfile
```ogdl
github "ChiliLabs/CHIPageControl" ~> 0.0.4
github "ChiliLabs/CHIPageControl" ~> 0.0.5
```


Expand Down

0 comments on commit c7cf7dc

Please sign in to comment.