在您的应用程序委托中。只需转到函数即可:
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool
{
if #available(iOS 13.0, *) {
window?.overrideUserInterfaceStyle = .light
}
return true
}
Run Code Online (Sandbox Code Playgroud)
有什么建议....