import UIKit final 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 w = UIWindow(windowScene: windowScene) w.rootViewController = WebViewController() w.makeKeyAndVisible() window = w } }