Skip to content

Commit 2884581

Browse files
author
Jean-Charles SORIN
committed
Add fading animation for OverlayView
1 parent 0d04bac commit 2884581

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

WYPopoverController/WYPopoverController.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1613,6 +1613,7 @@ - (void)presentPopoverFromRect:(CGRect)aRect
16131613
{
16141614
if ((options & WYPopoverAnimationOptionFade) == WYPopoverAnimationOptionFade)
16151615
{
1616+
overlayView.alpha = 0;
16161617
containerView.alpha = 0;
16171618
}
16181619

@@ -1626,6 +1627,8 @@ - (void)presentPopoverFromRect:(CGRect)aRect
16261627
}
16271628

16281629
[UIView animateWithDuration:WY_POPOVER_DEFAULT_ANIMATION_DURATION animations:^{
1630+
overlayView.alpha = 1;
1631+
overlayView.transform = CGAffineTransformIdentity;
16291632
containerView.alpha = 1;
16301633
containerView.transform = CGAffineTransformIdentity;
16311634
} completion:^(BOOL finished) {

0 commit comments

Comments
 (0)