44 lines
941 B
Swift
44 lines
941 B
Swift
//
|
|
// SceneDelegate.swift
|
|
// suixinkan_ios
|
|
//
|
|
// Created by hanqiu on 2026/6/26.
|
|
//
|
|
|
|
import UIKit
|
|
|
|
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 }
|
|
|
|
AppUITestLaunchState.resetIfNeeded()
|
|
|
|
let window = UIWindow(windowScene: windowScene)
|
|
window.rootViewController = RootViewController()
|
|
window.makeKeyAndVisible()
|
|
self.window = window
|
|
}
|
|
|
|
func sceneDidDisconnect(_ scene: UIScene) {
|
|
}
|
|
|
|
func sceneDidBecomeActive(_ scene: UIScene) {
|
|
}
|
|
|
|
func sceneWillResignActive(_ scene: UIScene) {
|
|
}
|
|
|
|
func sceneWillEnterForeground(_ scene: UIScene) {
|
|
}
|
|
|
|
func sceneDidEnterBackground(_ scene: UIScene) {
|
|
}
|
|
}
|