aboutsummaryrefslogtreecommitdiff
path: root/Hotline/Models/ApplicationState.swift
blob: 6e077c5fb88877da4a77d77f8d37d1e4093690ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import SwiftUI

@Observable
final class ApplicationState {
  static let shared = ApplicationState()
  
  var activeHotline: Hotline? = nil
  var activeServerState: ServerState? = nil
  
  // Frontmost server window information
  var activeServerID: UUID? = nil
  var activeServerBanner: NSImage? = nil
  var activeServerName: String? = nil
  
  var cloudKitReady: Bool = false
}