//
|
// SceneDelegate.swift
|
// WanPai
|
//
|
// Created by 杨锴 on 2023/6/6.
|
//
|
|
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 }
|
window = UIWindow(windowScene: windowScene)
|
window?.frame = windowScene.coordinateSpace.bounds
|
let nav = LoginNav(rootViewController: LoginVC())
|
window?.rootViewController = nav
|
window?.makeKeyAndVisible()
|
|
if #available(iOS 13.0, *) {
|
self.window?.overrideUserInterfaceStyle = .light
|
}
|
|
}
|
|
func sceneDidDisconnect(_ scene: UIScene) {
|
|
}
|
|
func sceneDidBecomeActive(_ scene: UIScene) {
|
|
}
|
|
func sceneWillResignActive(_ scene: UIScene) {
|
|
}
|
|
func sceneWillEnterForeground(_ scene: UIScene) {
|
|
}
|
|
func sceneDidEnterBackground(_ scene: UIScene) {
|
|
}
|
|
|
}
|