Skip to content

Commit

Permalink
(apache#929) Disable splashscreen per Cordova docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sherburne authored Jun 30, 2020
1 parent e6e90e0 commit f66e08b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CordovaLib/Classes/Public/CDVViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,12 @@ - (UIView*)newCordovaViewWithFrame:(CGRect)bounds

- (void)createLaunchView
{
// (#929) Per Cordova documentation, don't instantiate the splash screen
// if SplashScreenDelay and FadeSplashScreenDuration are both zero...
CGFloat splashScreenDelay = [self.settings cordovaFloatSettingForKey:@"SplashScreenDelay" defaultValue:0];
CGFloat fadeSplashScreenDuration = [self.settings cordovaFloatSettingForKey:@"FadeSplashScreenDuration" defaultValue:250];
if (splashScreenDelay == 0 && fadeSplashScreenDuration == 0) {return;}

CGRect webViewBounds = self.view.bounds;
webViewBounds.origin = self.view.bounds.origin;

Expand Down

0 comments on commit f66e08b

Please sign in to comment.