mirror of
https://github.com/samsonjs/appleuniversal-xctemplates.git
synced 2026-03-25 08:55:53 +00:00
Adds fatal error
This commit is contained in:
parent
f8611fb5db
commit
66a37e605e
1 changed files with 1 additions and 1 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Reference in a new issue