Skip to content

Commit

Permalink
fix(splash-screen): Remove extension from storyboard name (#1281)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored Nov 15, 2022
1 parent b342061 commit 86ecc4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion splash-screen/ios/Plugin/SplashScreen.swift
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ import Capacitor

private func buildViews() {
let storyboardName = Bundle.main.infoDictionary?["UILaunchStoryboardName"] as? String ?? "LaunchScreen"
if let vc = UIStoryboard(name: storyboardName, bundle: nil).instantiateInitialViewController() {
if let vc = UIStoryboard(name: storyboardName.replacingOccurrences(of: ".storyboard", with: ""), bundle: nil).instantiateInitialViewController() {
viewController = vc
}

Expand Down

0 comments on commit 86ecc4f

Please sign in to comment.