Skip to content

Commit b863ce4

Browse files
author
Warif Akhand Rishi
committed
Animation duration property made var
1 parent 73902f2 commit b863ce4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Classes/CKWaveCollectionViewAnimator.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class CKWaveCollectionViewAnimator: NSObject, UIViewControllerAnimatedTransition
1414

1515
internal var reversed: Bool = false
1616

17-
internal let animationDuration: Double! = 1.0
17+
internal var animationDuration: Double! = 1.0
1818
internal let kCellAnimSmallDelta: Double! = 0.01
1919
internal let kCellAnimBigDelta: Double! = 0.03
2020

Example/CKWaveCollectionViewTransition/NavigationControllerDelegate.swift

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class NavigationControllerDelegate : NSObject, UINavigationControllerDelegate {
1414
fromViewController fromVC: UIViewController, toViewController toVC: UIViewController) -> UIViewControllerAnimatedTransitioning? {
1515

1616
let animator = CKWaveCollectionViewAnimator()
17+
animator.animationDuration = 0.7
1718

1819
if operation != UINavigationControllerOperation.Push {
1920

0 commit comments

Comments
 (0)