import UIKit final class SceneDelegate: UIResponder, UIWindowSceneDelegate { var window: UIWindow? func scene( _ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions ) { self.window = (scene as? UIWindowScene).map { UIWindow(windowScene: $0) } self.window?.rootViewController = UINavigationController( rootViewController: RootViewController()) self.window?.makeKeyAndVisible() } } @main final class AppDelegate: UIResponder, UIApplicationDelegate { func application( _ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? ) -> Bool { true } }