From 5b8adb955b2da84ccd6bb4eaf97c95de97109bef Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Mon, 16 Aug 2021 13:50:11 +0200 Subject: [PATCH] fix(splash-screen): Use configured storyboard instead of hardcoded value --- splash-screen/ios/Plugin/SplashScreen.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/splash-screen/ios/Plugin/SplashScreen.swift b/splash-screen/ios/Plugin/SplashScreen.swift index 9f7223c45..a94864c48 100644 --- a/splash-screen/ios/Plugin/SplashScreen.swift +++ b/splash-screen/ios/Plugin/SplashScreen.swift @@ -88,7 +88,8 @@ import Capacitor } private func buildViews() { - if let vc = UIStoryboard(name: "LaunchScreen", bundle: nil).instantiateInitialViewController() { + let storyboardName = Bundle.main.infoDictionary?["UILaunchStoryboardName"] as? String ?? "LaunchScreen" + if let vc = UIStoryboard(name: storyboardName, bundle: nil).instantiateInitialViewController() { viewController = vc }