Skip to content

Commit 465bd45

Browse files
committed
Remove unneeded/forgotten transform.
1 parent c29cb93 commit 465bd45

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

CardAnimation/AnimatedCardView/AnimatedCardsView.swift

+1-3
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,11 @@ public class AnimatedCardsView: UIView {
127127

128128
let frontView = cardArray.removeFirst()
129129

130-
var newView : UIView? = nil
131130
if currentIndex + cardArray.count < cardCount {
132-
newView = addNewCardViewWithIndex(currentIndex, insertOnRear: true)
131+
addNewCardViewWithIndex(currentIndex, insertOnRear: true)
133132
}
134133

135134
UIView.animateWithDuration(animationsSpeed*1.5, animations: {
136-
newView?.layer.transform = self.flipUpTransform3D
137135
frontView.layer.transform = self.flipDownTransform3D
138136
}, completion: { _ in
139137
frontView.removeFromSuperview()

0 commit comments

Comments
 (0)