I have added Launch Screen Image as well as background color for launch screen From info.plist which is available in SwiftUI 2.0 or iOS 14. But My Launch Image or the back ground color does not show while launching the app in simulator iphone 12 max pro.
I have checked everything in my assets file and also matched the image name and background color name that i have provided to the info.plist but nothing works.
Here is what i have done in info.plist:
Assets name in my assets folder:
While running the app in simulator it does not show the black background color or the image for launch screen it just shows a white back ground for a few second then takes to the app main view.
Adding a Launch Screen In SwiftUI projects, the launch screen is not generated by default. You need to add it manually in the Info. plist file. After opening the file, you should see an entry named Launch Screen.
Every iOS app must provide a launch screen, a screen that displays while your app launches. The launch screen appears instantly when your app starts up and is quickly replaced with the app's first screen. You create a launch screen for your app in your Xcode project in one of two ways: Information property list.
I hit the same issue. Restarting the simulator made it start working for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With