diff options
| author | Dustin Mierau <dustin@mierau.me> | 2024-05-01 21:22:18 -0700 |
|---|---|---|
| committer | Dustin Mierau <dustin@mierau.me> | 2024-05-01 21:32:15 -0700 |
| commit | 60a3f2d29dfff945f59787f5a7786c6e78ba7bb9 (patch) | |
| tree | e3d0aa6ae541790ea700353b0ac01fe8b4950f9f /Hotline/Models/ApplicationState.swift | |
| parent | b9529a0d255ad41c62a4e3b93a47ebb5bb82a565 (diff) | |
New Hotline toolbar window for banner.
Diffstat (limited to 'Hotline/Models/ApplicationState.swift')
| -rw-r--r-- | Hotline/Models/ApplicationState.swift | 14 |
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 +} |