From 67dd67fc443ea5494e8482fd4346c5275a42841b Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Mon, 16 Aug 2021 18:06:53 +0200 Subject: [PATCH] fix(splash-screen): Use configured storyboard instead of hardcoded value (#548) --- 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 }