22

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 background 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: enter image description here

Assets name in my assets folder:

enter image description here

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 background for a few seconds then takes to the app main view.

enter image description here

stackich
  • 3,607
  • 3
  • 17
  • 41
MD Sazid Hasan Dip
  • 1,425
  • 2
  • 14
  • 29

1 Answers1

27

I hit the same issue. Restarting the simulator made it start working for me.

James Crowley
  • 3,911
  • 5
  • 36
  • 65