Files
suixinkan_ios_uikit/suixinkan_ios/SceneDelegate.swift
汉秋 7469f92177 Replace CYLTabBarController with native UITabBarController for main tabs.
Use a system scan tab slot with MainScanTabItem interception so scanner presentation no longer depends on CYL PlusButton, and remove the CYLTabBarController pod dependency.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-26 19:17:38 +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) {
}
}