Skip to content

Commit 1ce5d1a

Browse files
committed
Added animation curve to tag popover deletion, change tag delete animation to moving off screen since scaling is broken.
1 parent 0c48dad commit 1ce5d1a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

EBPhotoPagesController/EBPhotoPagesController.m

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1463,10 +1463,12 @@ - (void)deletePhotoAtIndex:(NSInteger)index
14631463
- (void)deleteTagPopover:(EBTagPopover *)tagPopover inPhotoAtIndex:(NSInteger)index
14641464
{
14651465
[UIView animateWithDuration:0.5f
1466+
delay:0.05f
1467+
options:UIViewAnimationOptionCurveEaseInOut
14661468
animations:^{
1467-
tagPopover.transform = CGAffineTransformMakeScale(0.0, 0.0);
1468-
// tagPopover.transform = CGAffineTransformMakeTranslation(50.0f, 500.0f);
1469-
// tagPopover.alpha = 0.0f;
1469+
// tagPopover.transform = CGAffineTransformMakeScale(0.0, 0.0);
1470+
[tagPopover setTransform:CGAffineTransformMakeTranslation(0.0f, 400.0f)];
1471+
[tagPopover setAlpha:0.0f];
14701472
} completion:^(BOOL finished) {
14711473
[tagPopover removeFromSuperview];
14721474
}];

0 commit comments

Comments
 (0)