Files
suixinkan_ios_uikit/suixinkan_ios/SceneDelegate.swift
汉秋 43179abf2c Fix TabBar icon assets and simplify Podfile post_install.
Rename tab icons to snake_case with @2x/@3x scales, register CYL plus button at app launch, and remove redundant Podfile hooks already covered by the Xcode project.

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

60 lines
1.7 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
import CYLTabBarController
/// 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 }
MainScanPlusButton.register()
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) {
}
}