Adds fatal error

This commit is contained in:
Simon Støvring 2021-09-12 08:28:25 +02:00
parent f8611fb5db
commit 66a37e605e
No known key found for this signature in database
GPG key ID: 30FC5A50FD993021

View file

@ -13,7 +13,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
guard let windowScene = scene as? UIWindowScene else {
return
fatalError("Expected scene of type UIWindowScene but got an unexpected type")
}
window = UIWindow(windowScene: windowScene)
window?.rootViewController = UINavigationController(rootViewController: MainViewController())