diff --git a/Speaky/AppState.swift b/Speaky/AppState.swift index 9f2b9fc..8bd9386 100644 --- a/Speaky/AppState.swift +++ b/Speaky/AppState.swift @@ -89,15 +89,6 @@ final class AppState { coordinator.observeSystemWake() } - var menuBarIconName: String { - switch state { - case .idle: "mic.fill" - case .recording: "mic.badge.waveform.fill" - case .transcribing: "ellipsis.circle" - case .error: "exclamationmark.triangle" - } - } - var isRecording: Bool { state == .recording } var isTranscribing: Bool { state == .transcribing } diff --git a/Speaky/Resources/Assets.xcassets/SpeakyMenuBarIcon.imageset/Contents.json b/Speaky/Resources/Assets.xcassets/SpeakyMenuBarIcon.imageset/Contents.json new file mode 100644 index 0000000..a0cc248 --- /dev/null +++ b/Speaky/Resources/Assets.xcassets/SpeakyMenuBarIcon.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images" : [ + { + "filename" : "SpeakyMenuBarIcon.svg", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + }, + "properties" : { + "preserves-vector-representation" : true, + "template-rendering-intent" : "template" + } +} diff --git a/Speaky/Resources/Assets.xcassets/SpeakyMenuBarIcon.imageset/SpeakyMenuBarIcon.svg b/Speaky/Resources/Assets.xcassets/SpeakyMenuBarIcon.imageset/SpeakyMenuBarIcon.svg new file mode 100644 index 0000000..267d581 --- /dev/null +++ b/Speaky/Resources/Assets.xcassets/SpeakyMenuBarIcon.imageset/SpeakyMenuBarIcon.svg @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/Speaky/SpeakyApp.swift b/Speaky/SpeakyApp.swift index 37fe2c1..c289670 100644 --- a/Speaky/SpeakyApp.swift +++ b/Speaky/SpeakyApp.swift @@ -26,7 +26,8 @@ struct SpeakyApp: App { MenuBarView() .environment(appState) } label: { - Image(systemName: appState.menuBarIconName) + Image("SpeakyMenuBarIcon") + .accessibilityLabel("Speaky") } }