aboutsummaryrefslogtreecommitdiff
path: root/Hotline/Models/ApplicationState.swift
blob: 5814fbacb5f7cd93e1eb3f4e3068ec45993ae736 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
}