Dans votre délégué de l'application. Allez-y à la FUNC:
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { if #available(iOS 13.0, *) { window?.overrideUserInterfaceStyle = .light } return true }
3 Réponses :
Modifier AppDelegate code> avec le code suivant.
func application(_application:UIApplication,didFinishLaunchingWithOptions launchOptions[UIApplication.LaunchOptionsKey: Any]?) -> Bool
{
if #available(iOS 13.0, *) {
window?.overrideUserInterfaceStyle = .light
}
return true
}
Vous pouvez le faire dans le clé: chaîne: info.plist code>: p>
uIuserinterfacestyle code> p>
lumière code> p>
Ouvrir Info.Plist En tant que code source et ajoutez ceci:
<key>UIUserInterfaceStyle</key> <string>Light</string>