File tree 3 files changed +11
-4
lines changed
3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 1
1
Pod ::Spec . new do |s |
2
2
s . name = 'CHIPageControl'
3
- s . version = '0.0.5 '
3
+ s . version = '0.0.6 '
4
4
s . summary = 'CHIPageControl is a set of cool animated page controls written in Swift to replace boring UIPageControl.'
5
5
6
6
s . ios . deployment_target = '8.0'
Original file line number Diff line number Diff line change @@ -113,7 +113,14 @@ open class CHIPageControlFresno: CHIBasePageControl {
113
113
active. frame. origin. x = min. origin. x + offset
114
114
115
115
let index = page + 1
116
- guard elements. indices. contains ( index) else { return }
116
+
117
+ guard elements. indices. contains ( index) else {
118
+ if frames. indices. contains ( page) {
119
+ active. frame = frames [ page]
120
+ }
121
+ return
122
+ }
123
+
117
124
let element = elements [ index]
118
125
guard frames. indices. contains ( index - 1 ) , frames. indices. contains ( index) else { return }
119
126
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ Just add the `CHIPageControl` folder to your project.
25
25
26
26
use [ CocoaPods] ( https://cocoapods.org ) with Podfile:
27
27
``` ruby
28
- pod ' CHIPageControl' , ' ~> 0.0.5 '
28
+ pod ' CHIPageControl' , ' ~> 0.0.6 '
29
29
30
30
# individual page control
31
31
pod ' CHIPageControl/Aji'
@@ -41,7 +41,7 @@ pod 'CHIPageControl/Puya'
41
41
42
42
use [ Carthage] ( https://github.com/Carthage/Carthage ) with Cartfile
43
43
``` ogdl
44
- github "ChiliLabs/CHIPageControl" ~> 0.0.5
44
+ github "ChiliLabs/CHIPageControl" ~> 0.0.6
45
45
```
46
46
47
47
You can’t perform that action at this time.
0 commit comments