Skip to content

Commit

Permalink
hidesForSinglePage fix
Browse files Browse the repository at this point in the history
  • Loading branch information
love4soul committed Mar 25, 2017
1 parent cdab344 commit e9339ed
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.6'
s.version = '0.1'
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/Core/CHIBasePageControl.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import UIKit
@IBInspectable open var numberOfPages: Int = 0 {
didSet {
updateNumberOfPages(numberOfPages)
self.isHidden = hidesForSinglePage && numberOfPages == 0
self.isHidden = hidesForSinglePage && numberOfPages <= 1
}
}

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.6'
pod 'CHIPageControl', '~> 0.1'

# 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.6
github "ChiliLabs/CHIPageControl" ~> 0.1
```


Expand Down

0 comments on commit e9339ed

Please sign in to comment.