aboutsummaryrefslogtreecommitdiff
path: root/Hotline/Models/ApplicationState.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Hotline/Models/ApplicationState.swift')
-rw-r--r--Hotline/Models/ApplicationState.swift14
1 files changed, 14 insertions, 0 deletions
diff --git a/Hotline/Models/ApplicationState.swift b/Hotline/Models/ApplicationState.swift
new file mode 100644
index 0000000..124db6b
--- /dev/null
+++ b/Hotline/Models/ApplicationState.swift
@@ -0,0 +1,14 @@
+import SwiftUI
+
+@Observable
+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
+}