aboutsummaryrefslogtreecommitdiff
path: root/Hotline/Models/ApplicationState.swift
blob: 3e90ed9d2746cb0bb4629c86b3e40613f95e962d (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
}