In iOS development, a launch screen (also known as a splash screen) is the initial screen that appears when your app is launched. It provides a seamless transition from launching the app to displaying its first screen.
The launch screen appears instantly when your app starts up and is quickly replaced with the app’s actual content. It gives users the impression that your app is fast and responsive by providing context while the app initializes.
Setting up launch screen in SwiftUI is no different from UIKit app.
If your project already has a launch screen configured via a Storyboard, you can remove it. Remove the “Launch screen interface file base name” (UILaunchStoryboardName) key from your project’s Info.plist.
Add a new key called “Launch Screen” (UILaunchScreen) of type dictionary, which supports several options:
Remove UILaunchScreen key in Info.plist if any. This tells Xcode you won’t be configuring the launch screen through the Info.plist.
Create a file LaunchScreen.storyboard and design it using elements like images, labels, and backgrounds.
Then you can set LaunchScreen.storyboard in target’s General tab under “App Icons and Launch Images” section.