aboutsummaryrefslogtreecommitdiff
path: root/Hotline/State/AppState.swift
blob: 3917ad0fdbff50e5567b4bad3318f682a94a2ca2 (plain)
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
}