I created an Xcode ios project. I choose the SwiftUI for the user interface. At a later stage, I decided to use Storyboard instead.
guard let _ = (scene as? UIWindowScene) else { return }
instead of SwiftUI instance creation code.Main
in Info.plist as the Main storyboard.When I run the app after above changes black screen appears after showing launch screen.
When working with Scenes, you need to specify the starting storyboard in a different place in the Info.plist
, under
Unfortunately, this can only be done directly by editing the Info.plist, not in the target settings / deployment info section:
And don't forget to set the initial view controller in the storyboard: