Skip to content

Commit

Permalink
fix(splash-screen): Use configured storyboard instead of hardcoded va…
Browse files Browse the repository at this point in the history
…lue (#548)
  • Loading branch information
jcesarmobile authored Aug 16, 2021
1 parent ad8c325 commit 67dd67f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion splash-screen/ios/Plugin/SplashScreen.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 67dd67f

Please sign in to comment.