Files
suixinkan_ios_uikit/suixinkan_ios/SceneDelegate.swift
汉秋 a1c031c9b7 Integrate CYLTabBar center scan button and unify UIKit navigation.
Add CYLTabBarController with a global scan entry, promote MainTabBarController to the window root after login, replace RouterPath-based navigation with AppNavigator, and fix Profile diffable cell reconfiguration crashes.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-26 16:36:18 +08:00

57 lines
1.6 KiB
Swift
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// SceneDelegate.swift
// suixinkan_ios
//
// Created by hanqiu on 2026/6/26.
//
import UIKit
/// Scene
class SceneDelegate: UIResponder, UIWindowSceneDelegate {
var window: UIWindow?
/// window
private var sessionRootController: RootViewController?
/// Scene UI
func scene(
_ scene: UIScene,
willConnectTo session: UISceneSession,
options connectionOptions: UIScene.ConnectionOptions
) {
guard let windowScene = scene as? UIWindowScene else { return }
AppUITestLaunchState.resetIfNeeded()
let rootViewController = RootViewController()
sessionRootController = rootViewController
let window = UIWindow(windowScene: windowScene)
window.rootViewController = rootViewController
window.makeKeyAndVisible()
self.window = window
}
/// Scene
func sceneDidDisconnect(_ scene: UIScene) {
}
/// Scene
func sceneDidBecomeActive(_ scene: UIScene) {
}
/// Scene
func sceneWillResignActive(_ scene: UIScene) {
}
/// Scene
func sceneWillEnterForeground(_ scene: UIScene) {
}
/// Scene
func sceneDidEnterBackground(_ scene: UIScene) {
}
}