Add login flow, session routing, and MainTab shell aligned with reference UI.

Implement token-based root routing, Android-matched login screen, five-slot MainTabBar with scan action, and placeholder tab pages.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-06 15:12:34 +08:00
parent e290656322
commit b7d74905b7
70 changed files with 1588 additions and 48 deletions

View File

@ -0,0 +1,21 @@
//
// MainTabBadgeViewModel.swift
// suixinkan
//
import Foundation
/// Tab ViewModel Tab
final class MainTabBadgeViewModel {
var onChange: (() -> Void)?
private(set) var pendingWriteOffCount: Int? {
didSet { onChange?() }
}
///
func refreshPendingWriteOffCount() {
pendingWriteOffCount = nil
}
}