This is a cool custom transition between two or more UICollectionViewControllers with wave like cell animation. Could be used in e.g. galleries.
Animation idea was taken from Łukasz FrankiewiczDribble project
There are two options:
- Via CocoaPods.
- Manually add the files into your Xcode project. Slightly simpler, but updates are also manual.
- In storyboard add object in your NavigationController.
- Set it's class to NavigationControllerDelegate
- Set NavigationController delegate to this object.
or
Implement UINavigationControllerDelegate in your ViewController:
func navigationController(navigationController:UINavigationController, animationControllerForOperation operation:UINavigationControllerOperation, fromViewController fromVC:UIViewController, toViewController toVC:UIViewController)->UIViewControllerAnimatedTransitioning?{letanimator=CKWaveCollectionViewAnimator()if operation !=UINavigationControllerOperation.Push { animator.reversed =true}return animator }internalletanimationDuration:Double!=1.0Total animation duration
internalletkCellAnimSmallDelta:Double!=0.01Small delay between cell animations
internalletkCellAnimBigDelta:Double!=0.03Big delay between cell animations
- iOS 7.0+
Released under the MIT license. See the LICENSE file for more info.



