add correct code
[app.GameProjectTest] / GameProjectTest / AppDelegate.swift
index f17c824..6414124 100644 (file)
@@ -1,13 +1,13 @@
 //
 //  AppDelegate.swift
-//  GameProjectTest
+//  GameProjectTwo
 //
-//  Created by Alan Knowles on 29/3/2022.
+//  Created by Alan Knowles on 30/3/2022.
 //
 
 import UIKit
 
-@main
+@UIApplicationMain
 class AppDelegate: UIResponder, UIApplicationDelegate {
 
     var window: UIWindow?
@@ -15,6 +15,10 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
 
     func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
         // Override point for customization after application launch.
+        
+        window = UIWindow()
+        window?.makeKeyAndVisible()
+         window?.rootViewController = ContainerController()
         return true
     }