IOS13.0 system appears dark and light color mode, if you do not configure the corresponding mode UI in App development, may not be able to adapt in dark mode, UI disorder occurs. Or if your app doesn’t want to support dark/night mode, just disable it.
1. Add Appearance to info.plist and set it to Light.

2. Alternatively, add the following code to info.plist SourceCode
<key>UIUserInterfaceStyle</key>
<string>Light</string>
Copy the code
3. Set the display mode for each page
# if available (iOS 13.0. *) {self. OverrideUserInterfaceStyle =. Light/dark or light}Copy the code
Ps: Determine the current display mode
# if available (iOS 13.0, *) { let userinterFaceStyle = self.traitCollection.userInterfaceStyle switch userinterFaceStyle { case UIUserInterfaceStyle. Dark: / / dark break case UIUserInterfaceStyle. Light: / / light color break the case UIUserInterfaceStyle. Unspecified: / / not clear break default: break}}Copy the code