12

I have an issue with changing background color of launch screen on iOS. When I open the app for the first time it loads a white page before the black viewcontroller appears. How can I change the white launch screen to a black one?

Below is my app General launch image settings:

enter image description here

I am still new with iOS. Any ideas?

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Kodr.F
  • 13,932
  • 13
  • 46
  • 91
  • You have a launch image selected for your launchscreen. Is this image white or black ? – cb89 Jul 13 '17 at 11:57

5 Answers5

27

Create a launch screen storyboard and select that as launch screen file.

enter image description here

Then change the background to black. You can also customize it whatever way you want

enter image description here

Fangming
  • 24,551
  • 6
  • 100
  • 90
7

There are many scenario about LaunchScreen turns into black.

Here another scenario which I experienced it.

If you set background color of LaunchScreen.storyboard from "New Color Set" from Assets.xcassets then it turns into back.

Use SystemColor or Custom RBG Value to your LaunchScreen.storyboard Issue Fixed.

kiran
  • 4,285
  • 7
  • 53
  • 98
2

I had this problem before. The default launch screen color is 'system background color' and it will be black when dark mode is enabled. If you prefer to use white background color all the time, you can simply switch to white color in your panel.

enter image description here

Aliaksandr Sushkevich
  • 11,550
  • 7
  • 37
  • 44
Bing Xiong
  • 21
  • 2
1

Actually, my case was on React Native, but it is no different for creating an iOS launch screen, the reason for the black screen was creating a storyboard file instead of Launch Screen, I have deleted my last file that I created and then try to create Launch Screen by the below option:

enter image description here

I don't know what was the main reason because in setting > general the launch screen setting was correct but still I was facing the black screen, I deleted and re-create everything by using the above image and it was fixed.

AmerllicA
  • 29,059
  • 15
  • 130
  • 154
0

Found a much easier and cleaner approach if you really just want a color as Launch Screen in 2023.

  1. Define your preferred color in your Assets e.g. as AccentColor asset
  2. Add "Background color" as String in you plist with the name of your color as value plist
  3. Done
Mike
  • 99
  • 6