From 22e3db4bd4e0399eb357bd0c57a154ee60801f23 Mon Sep 17 00:00:00 2001 From: EddyVerbruggen Date: Thu, 29 Oct 2015 14:56:51 +0100 Subject: [PATCH] #84 flip background color change? Better impl for iOS as well. --- src/ios/NativePageTransitions.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ios/NativePageTransitions.m b/src/ios/NativePageTransitions.m index d098ffb..ec91d5c 100755 --- a/src/ios/NativePageTransitions.m +++ b/src/ios/NativePageTransitions.m @@ -370,6 +370,9 @@ - (void) performFlipTransition { options:animationOptions | UIViewAnimationOptionAllowAnimatedContent animations:^{} completion:^(BOOL finished) { + if (backgroundColor != nil) { + self.transitionView.superview.superview.backgroundColor = [UIColor blackColor]; + } CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK]; [self.commandDelegate sendPluginResult:pluginResult callbackId:_command.callbackId]; }];