Files
suixinkan_uikit/suixinkan/UI/MainTab/MainTabBadgeViewModel.swift
汉秋 b7d74905b7 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>
2026-07-06 15:12:34 +08:00

22 lines
447 B
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.

//
// 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
}
}