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>
This commit is contained in:
2026-06-26 16:36:18 +08:00
parent 24a7339b68
commit a1c031c9b7
31 changed files with 838 additions and 517 deletions

View File

@ -7,11 +7,14 @@
import UIKit
/// Scene `RootViewController`
/// Scene
class SceneDelegate: UIResponder, UIWindowSceneDelegate {
var window: UIWindow?
/// window
private var sessionRootController: RootViewController?
/// Scene UI
func scene(
_ scene: UIScene,
@ -22,8 +25,11 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
AppUITestLaunchState.resetIfNeeded()
let rootViewController = RootViewController()
sessionRootController = rootViewController
let window = UIWindow(windowScene: windowScene)
window.rootViewController = RootViewController()
window.rootViewController = rootViewController
window.makeKeyAndVisible()
self.window = window
}