From 60a3f2d29dfff945f59787f5a7786c6e78ba7bb9 Mon Sep 17 00:00:00 2001 From: Dustin Mierau Date: Wed, 1 May 2024 21:22:18 -0700 Subject: New Hotline toolbar window for banner. --- Hotline/Models/ApplicationState.swift | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Hotline/Models/ApplicationState.swift (limited to 'Hotline/Models/ApplicationState.swift') 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 +} -- cgit