I\'m having trouble running my basic iPhone application (while going through the Stanford iTunes CS193p lectures) in the iOS simulator.
I\'ve been searching for a wh
I solved this question with set window background color like this in iOS 13:
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
guard let _ = (scene as? UIWindowScene) else { return }
if let windowScene = scene as? UIWindowScene {
window = UIWindow(windowScene: windowScene)
window?.backgroundColor = .white
let storyBoard = UIStoryboard(name: "Main", bundle: nil)
// workaround for svprogresshud
let appDelegate = UIApplication.shared.delegate as! AppDelegate
appDelegate.window = window
}
}