punchnet-macos/punchnet/Views/AppContext.swift
2026-03-23 23:54:20 +08:00

34 lines
608 B
Swift

//
// LoginState.swift
// punchnet
//
// Created by on 2026/1/16.
//
import Foundation
import Observation
@Observable
class AppContext {
var noticePort: Int
// "/connect"
var networkContext: NetworkContext?
//
enum AppScene: Equatable {
case login(username: String?)
case logined
case register
case resetPassword
}
// app
var appScene: AppScene = .login(username: nil)
init(noticePort: Int) {
self.noticePort = noticePort
}
}