@@ -17,8 +17,6 @@ class SDEPushAndPopAnimationController: NSObject, UIViewControllerAnimatedTransi
17
17
var horizontalGap : CGFloat = 0
18
18
var verticalGap : CGFloat = 0
19
19
20
- private var fakeCoverView : UIView ?
21
-
22
20
private let kAnimationDuration : Double = 1.0
23
21
private let kCellAnimationSmallDelta : Double = 0.01
24
22
private let kCellAnimationBigDelta : Double = 0.03
@@ -55,14 +53,14 @@ class SDEPushAndPopAnimationController: NSObject, UIViewControllerAnimatedTransi
55
53
setupVisibleCellsBeforePushToVC ( toVC!)
56
54
containerView? . addSubview ( toView!)
57
55
58
- fakeCoverView = createAndSetupFakeCoverView ( fromVC!, toVC: toVC!)
56
+ let fakeCoverView = createAndSetupFakeCoverView ( fromVC!, toVC: toVC!)
59
57
60
58
UIView . setAnimationCurve ( UIViewAnimationCurve . EaseOut)
61
59
let options : UIViewKeyframeAnimationOptions = [ . BeginFromCurrentState, . OverrideInheritedDuration, . CalculationModeCubic, . CalculationModeLinear]
62
60
UIView . animateKeyframesWithDuration ( duration, delay: 0 , options: options, animations: {
63
61
64
62
self . addkeyFrameAnimationForBackgroundColorInPush ( fromVC!, toVC: toVC!)
65
- self . addKeyFrameAnimationInPushForFakeCoverView ( self . fakeCoverView)
63
+ self . addKeyFrameAnimationInPushForFakeCoverView ( fakeCoverView)
66
64
self . addKeyFrameAnimationOnVisibleCellsInPushToVC ( toVC!)
67
65
68
66
} , completion: { finished in
0 commit comments