We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c29cb93 commit 465bd45Copy full SHA for 465bd45
CardAnimation/AnimatedCardView/AnimatedCardsView.swift
@@ -127,13 +127,11 @@ public class AnimatedCardsView: UIView {
127
128
let frontView = cardArray.removeFirst()
129
130
- var newView : UIView? = nil
131
if currentIndex + cardArray.count < cardCount {
132
- newView = addNewCardViewWithIndex(currentIndex, insertOnRear: true)
+ addNewCardViewWithIndex(currentIndex, insertOnRear: true)
133
}
134
135
UIView.animateWithDuration(animationsSpeed*1.5, animations: {
136
- newView?.layer.transform = self.flipUpTransform3D
137
frontView.layer.transform = self.flipDownTransform3D
138
}, completion: { _ in
139
frontView.removeFromSuperview()
0 commit comments