diff --git a/iCards.xcodeproj/project.xcworkspace/xcuserdata/admin.xcuserdatad/UserInterfaceState.xcuserstate b/iCards.xcodeproj/project.xcworkspace/xcuserdata/admin.xcuserdatad/UserInterfaceState.xcuserstate index 6dc4582..c74cb70 100644 Binary files a/iCards.xcodeproj/project.xcworkspace/xcuserdata/admin.xcuserdatad/UserInterfaceState.xcuserstate and b/iCards.xcodeproj/project.xcworkspace/xcuserdata/admin.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/src/iCards.m b/src/iCards.m index f2da6f8..fc79480 100644 --- a/src/iCards.m +++ b/src/iCards.m @@ -256,7 +256,7 @@ - (void)cardSwipedAction:(UIView *)card { self.swipeEnded = YES; card.transform = CGAffineTransformMakeRotation(0); card.center = self.originalPoint; - CGRect lastCardFrame = [self.visibleViews.lastObject frame]; + CGRect cardFrame = card.frame; _reusingView = card; [self.visibleViews removeObject:card]; [card removeFromSuperview]; @@ -277,7 +277,7 @@ - (void)cardSwipedAction:(UIView *)card { } } if (newCard) { - newCard.frame = lastCardFrame; + newCard.frame = cardFrame; [self.visibleViews addObject:newCard]; }