iosxcodeios13ios-darkmode

Launch Images for Dark or Light Mode


How can I choose a different set of Launch images for Dark mode and for Light mode?

I have a LaunchImages set. When the application starts, an image is shown. For Light mode it seems good, however if I try to open my application on a device set to Dark mode (iOS 13), this image seems bad.

During the start application I can not use any code for dynamic changes and I have no options in XCode interface for managing it.


Solution

  • As the Launch Screen loads before the app starts executing, it would not be possible to change the launch images set programmatically.

    However, in the Image Set tab, you can change the Appearance option to enable a different set of images for Light and Dark modes:

    enter image description here

    So, if you set this image in the Launch Screen Storyboard, the result would be as below:

    enter image description here

    On a side note, if the need is just to change the background color, not the images, you may set the Launch Screen Storyboard view background color to System Background Color and just use transparent PNG images.