1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
import SwiftUI extension EnvironmentValues { @Entry var appState: AppState = AppState.shared } @Observable final class AppState { static let shared = AppState() private init() { } var activeHotline: Hotline? = nil var activeServerState: ServerState? = nil var cloudKitReady: Bool = false }