From c8448ced5ebf61e215d3e260600a75f2dcdc6822 Mon Sep 17 00:00:00 2001 From: Beingpax Date: Mon, 5 Jan 2026 12:50:27 +0545 Subject: [PATCH] feat: make shortcuts section collapsible and collapsed by default --- VoiceInk/Views/EnhancementSettingsView.swift | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/VoiceInk/Views/EnhancementSettingsView.swift b/VoiceInk/Views/EnhancementSettingsView.swift index 31f56a3..e4d8e55 100644 --- a/VoiceInk/Views/EnhancementSettingsView.swift +++ b/VoiceInk/Views/EnhancementSettingsView.swift @@ -4,7 +4,7 @@ import UniformTypeIdentifiers struct EnhancementSettingsView: View { @EnvironmentObject private var enhancementService: AIEnhancementService @State private var isEditingPrompt = false - @State private var isSettingsExpanded = true + @State private var isShortcutsExpanded = false @State private var selectedPromptForEdit: CustomPrompt? var body: some View { @@ -76,9 +76,15 @@ struct EnhancementSettingsView: View { } .opacity(enhancementService.isEnhancementEnabled ? 1.0 : 0.8) - Section("Shortcuts") { - EnhancementShortcutsView() - .padding(.vertical, 8) + Section { + DisclosureGroup(isExpanded: $isShortcutsExpanded) { + EnhancementShortcutsView() + .padding(.vertical, 8) + } label: { + Text("Shortcuts") + .font(.headline) + .foregroundColor(.primary) + } } .opacity(enhancementService.isEnhancementEnabled ? 1.0 : 0.8) }