--- a/Snapshots/Info.plist +++ b/Snapshots/Info.plist @@ -21,0 +21,17 @@ + UIApplicationSceneManifest + + UIApplicationSupportsMultipleScenes + + UISceneConfigurations + + UIWindowSceneSessionRoleApplication + + + UISceneConfigurationName + Default Configuration + UISceneDelegateClassName + $(PRODUCT_MODULE_NAME).SceneDelegate + + + + --- a/SceneDelegate.swift +++ b/SceneDelegate.swift @@ -0,0 +1,18 @@ +import UIKit + +// Generated by FoldReady — migrate your AppDelegate's window setup here. +// See Apple Technote TN3187 for the full UIScene migration. +class SceneDelegate: UIResponder, UIWindowSceneDelegate { + + var window: UIWindow? + + func scene(_ scene: UIScene, willConnectTo session: UISceneSession, + options connectionOptions: UIScene.ConnectionOptions) { + guard let windowScene = scene as? UIWindowScene else { return } + let window = UIWindow(windowScene: windowScene) + // TODO: set the app's real root view controller here (previously built in AppDelegate). + window.rootViewController = UIViewController() + window.makeKeyAndVisible() + self.window = window + } +}