punchnet-macos/punchnet/Views/AppContext.swift
2026-03-23 22:09:28 +08:00

34 lines
563 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 {
case login
case logined
case register
case resetPassword
}
// app
var appScene: AppScene = .login
init(noticePort: Int) {
self.noticePort = noticePort
}
}