@@ -452,7 +452,7 @@ - (void)showingAnimationWithCompletion:(void (^)(BOOL))completion {
452452 if (self.animationStyle == QMUIModalPresentationAnimationStyleFade) {
453453 self.dimmingView .alpha = 0.0 ;
454454 self.contentView .alpha = 0.0 ;
455- [UIView animateWithDuration: .2 delay: 0.0 options: QMUIViewAnimationOptionsCurveOut animations: ^{
455+ [UIView animateWithDuration: .25 delay: 0.0 options: QMUIViewAnimationOptionsCurveOut animations: ^{
456456 self.dimmingView .alpha = 1.0 ;
457457 self.contentView .alpha = 1.0 ;
458458 if (self.shouldDimmedAppAutomatically ) {
@@ -467,9 +467,9 @@ - (void)showingAnimationWithCompletion:(void (^)(BOOL))completion {
467467 } else if (self.animationStyle == QMUIModalPresentationAnimationStylePopup) {
468468 self.dimmingView .alpha = 0.0 ;
469469 self.contentView .transform = CGAffineTransformMakeScale (0 , 0 );
470- [UIView animateWithDuration: .3 delay: 0.0 options: QMUIViewAnimationOptionsCurveOut animations: ^{
470+ [UIView animateWithDuration: .25 delay: 0.0 options: QMUIViewAnimationOptionsCurveOut animations: ^{
471471 self.dimmingView .alpha = 1.0 ;
472- self.contentView .transform = CGAffineTransformMakeScale ( 1 , 1 ) ;
472+ self.contentView .transform = CGAffineTransformIdentity ;
473473 if (self.shouldDimmedAppAutomatically ) {
474474 [QMUIHelper dimmedApplicationWindow ];
475475 }
@@ -483,7 +483,7 @@ - (void)showingAnimationWithCompletion:(void (^)(BOOL))completion {
483483 } else if (self.animationStyle == QMUIModalPresentationAnimationStyleSlide) {
484484 self.dimmingView .alpha = 0.0 ;
485485 self.contentView .transform = CGAffineTransformMakeTranslation (0 , CGRectGetHeight (self.view .bounds ) - CGRectGetMinY (self.contentView .frame ));
486- [UIView animateWithDuration: .3 delay: 0.0 options: QMUIViewAnimationOptionsCurveOut animations: ^{
486+ [UIView animateWithDuration: .25 delay: 0.0 options: QMUIViewAnimationOptionsCurveOut animations: ^{
487487 self.dimmingView .alpha = 1.0 ;
488488 self.contentView .transform = CGAffineTransformIdentity;
489489 if (self.shouldDimmedAppAutomatically ) {
@@ -517,7 +517,7 @@ - (void)showWithAnimated:(BOOL)animated completion:(void (^)(BOOL))completion {
517517
518518- (void )hidingAnimationWithCompletion : (void (^)(BOOL ))completion {
519519 if (self.animationStyle == QMUIModalPresentationAnimationStyleFade) {
520- [UIView animateWithDuration: .2 delay: 0.0 options: QMUIViewAnimationOptionsCurveOut animations: ^{
520+ [UIView animateWithDuration: .25 delay: 0.0 options: QMUIViewAnimationOptionsCurveOut animations: ^{
521521 self.dimmingView .alpha = 0.0 ;
522522 self.contentView .alpha = 0.0 ;
523523 if (self.shouldDimmedAppAutomatically ) {
@@ -531,9 +531,9 @@ - (void)hidingAnimationWithCompletion:(void (^)(BOOL))completion {
531531 }
532532 }];
533533 } else if (self.animationStyle == QMUIModalPresentationAnimationStylePopup) {
534- [UIView animateWithDuration: .3 delay: 0.0 options: QMUIViewAnimationOptionsCurveOut animations: ^{
534+ [UIView animateWithDuration: .25 delay: 0.0 options: QMUIViewAnimationOptionsCurveOut animations: ^{
535535 self.dimmingView .alpha = 0.0 ;
536- self.contentView .transform = CGAffineTransformMakeScale (0.0 , 0.0 );
536+ self.contentView .transform = CGAffineTransformMakeScale (0.01 , 0.01 );
537537 if (self.shouldDimmedAppAutomatically ) {
538538 [QMUIHelper resetDimmedApplicationWindow ];
539539 }
@@ -545,7 +545,7 @@ - (void)hidingAnimationWithCompletion:(void (^)(BOOL))completion {
545545 }
546546 }];
547547 } else if (self.animationStyle == QMUIModalPresentationAnimationStyleSlide) {
548- [UIView animateWithDuration: .3 delay: 0.0 options: QMUIViewAnimationOptionsCurveOut animations: ^{
548+ [UIView animateWithDuration: .25 delay: 0.0 options: QMUIViewAnimationOptionsCurveOut animations: ^{
549549 self.dimmingView .alpha = 0.0 ;
550550 self.contentView .transform = CGAffineTransformMakeTranslation (0 , CGRectGetHeight (self.view .bounds ) - CGRectGetMinY (self.contentView .frame ));
551551 if (self.shouldDimmedAppAutomatically ) {
0 commit comments