File tree 1 file changed +11
-22
lines changed
1 file changed +11
-22
lines changed Original file line number Diff line number Diff line change 1
- # CKWaveCollectionViewTransition #
1
+ # CKWaveCollectionViewTransition
2
2
3
3
This is a cool custom transition between two or more UICollectionViewControllers with wave like cell animation.
4
4
Could be used in e.g. galleries.
5
5
6
6
![ anim.gif] ( https://bitbucket.org/repo/bdbxyL/images/1848372571-anim.gif )
7
7
8
- ### Installation ###
8
+ ## Installation
9
9
10
10
There are two options:
11
11
12
12
* Via CocoaPods.
13
13
* Manually add the files into your Xcode project. Slightly simpler, but updates are also manual.
14
14
15
- ### Usage ###
15
+ ## Usage
16
16
17
17
* In storyboard add object in your NavigationController.
18
18
31
31
Implement UINavigationControllerDelegate in your ViewController:
32
32
33
33
34
- ```
35
- #!swift
36
-
34
+ ``` swift
37
35
func navigationController (navigationController : UINavigationController, animationControllerForOperation operation : UINavigationControllerOperation,
38
36
fromViewController fromVC : UIViewController, toViewController toVC : UIViewController) -> UIViewControllerAnimatedTransitioning? {
39
37
@@ -46,48 +44,39 @@ func navigationController(navigationController: UINavigationController, animatio
46
44
47
45
return animator
48
46
}
49
-
50
-
51
47
```
52
48
53
49
54
50
55
51
56
52
57
- ### Properties ###
58
-
53
+ ## Properties
59
54
60
- ```
61
- #!swift
62
55
56
+ ``` swift
63
57
internal let animationDuration = 1.0
64
58
```
65
59
66
60
67
61
Total animation duration
68
62
69
- ```
70
- #!swift
71
-
63
+ ``` swift
72
64
internal let kCellAnimSmallDelta: Double = 0.01
73
-
74
65
```
75
66
76
67
Small delay between cell animations
77
68
78
69
79
- ```
80
- #!swift
81
-
70
+ ``` swift
82
71
internal let kCellAnimBigDelta: Double = 0.03
83
72
```
84
73
85
74
Big delay between cell animations
86
75
87
- ### Requirements ###
76
+ ## Requirements
88
77
89
78
* iOS 7.0+
90
79
91
- ### License ###
80
+ ## License
92
81
93
- Released under the MIT license. See the LICENSE file for more info.
82
+ Released under the MIT license. See the LICENSE file for more info.
You can’t perform that action at this time.
0 commit comments