I am working on adapting my existing iOS 11+ app to the new Dark Mode in iOS 13. Using dynamic / named colors works without any problem to switch between been normal and dark appearance, except on the apps launch screen.
- A simple
XIB
file is selected as launch image in the target settings - The launch screen works without any problem, except that the background color is not adapted to normal / dark mode.
- The launch screen uses a dynamic / named color as background color. Lets say green is selected for
Any appearance
and red for "Dark appearance". No matter if the devices is setup to use normal or dark mode the launch screen always showsAny appearance
color (green). - If the
Any appearance
color is set to some other value, e.g. yellow, the launch screen will appear in this color ==> The background color is setup correctly - Toggeling the interface style in Interface Builder shows the correct result ==> The background color is setup correctly
- Using the same dynamic color in other places within the app (e.g. on the first view controller) works without any problem ==> The color is setup properly
- Using a build in dynamic color like
System Background Color
works without any problem (white background in normal mode and black background in Dark Mode) - Using dynamic background image instead (as proposed in some other threads) has exactly the same problem (only shows normal appearance color).
So, how to get the launch screen to properly work with Dark mode?