Skip to content

Commit d15e27b

Browse files
seedanteseedante
authored and
seedante
committed
delete unnecessary variable.
1 parent d53e92b commit d15e27b

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Classes/SDEPushAndPopAnimationController.swift

+2-4
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ class SDEPushAndPopAnimationController: NSObject, UIViewControllerAnimatedTransi
1717
var horizontalGap: CGFloat = 0
1818
var verticalGap: CGFloat = 0
1919

20-
private var fakeCoverView: UIView?
21-
2220
private let kAnimationDuration: Double = 1.0
2321
private let kCellAnimationSmallDelta: Double = 0.01
2422
private let kCellAnimationBigDelta: Double = 0.03
@@ -55,14 +53,14 @@ class SDEPushAndPopAnimationController: NSObject, UIViewControllerAnimatedTransi
5553
setupVisibleCellsBeforePushToVC(toVC!)
5654
containerView?.addSubview(toView!)
5755

58-
fakeCoverView = createAndSetupFakeCoverView(fromVC!, toVC: toVC!)
56+
let fakeCoverView = createAndSetupFakeCoverView(fromVC!, toVC: toVC!)
5957

6058
UIView.setAnimationCurve(UIViewAnimationCurve.EaseOut)
6159
let options: UIViewKeyframeAnimationOptions = [.BeginFromCurrentState, .OverrideInheritedDuration, .CalculationModeCubic, .CalculationModeLinear]
6260
UIView.animateKeyframesWithDuration(duration, delay: 0, options: options, animations: {
6361

6462
self.addkeyFrameAnimationForBackgroundColorInPush(fromVC!, toVC: toVC!)
65-
self.addKeyFrameAnimationInPushForFakeCoverView(self.fakeCoverView)
63+
self.addKeyFrameAnimationInPushForFakeCoverView(fakeCoverView)
6664
self.addKeyFrameAnimationOnVisibleCellsInPushToVC(toVC!)
6765

6866
}, completion: { finished in

0 commit comments

Comments
 (0)