From 66a37e605e62e8b017976fd6ecd102f8c108923a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=B8vring?= Date: Sun, 12 Sep 2021 08:28:25 +0200 Subject: [PATCH] Adds fatal error --- .../Source/Application/SceneDelegate.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project Templates/Custom/iOS Minimalist.xctemplate/Source/Application/SceneDelegate.swift b/Project Templates/Custom/iOS Minimalist.xctemplate/Source/Application/SceneDelegate.swift index 65d6fb7..7e86850 100644 --- a/Project Templates/Custom/iOS Minimalist.xctemplate/Source/Application/SceneDelegate.swift +++ b/Project Templates/Custom/iOS Minimalist.xctemplate/Source/Application/SceneDelegate.swift @@ -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())