From ba0ab32e3eb775df806095b7669fc8764bc77a7a Mon Sep 17 00:00:00 2001 From: Beingpax Date: Mon, 5 Jan 2026 12:50:00 +0545 Subject: [PATCH] refactor: remove unused EnhancementShortcutsSection struct --- .../Settings/EnhancementShortcutsView.swift | 48 ------------------- 1 file changed, 48 deletions(-) diff --git a/VoiceInk/Views/Settings/EnhancementShortcutsView.swift b/VoiceInk/Views/Settings/EnhancementShortcutsView.swift index 4e85ffd..a34acb1 100644 --- a/VoiceInk/Views/Settings/EnhancementShortcutsView.swift +++ b/VoiceInk/Views/Settings/EnhancementShortcutsView.swift @@ -58,54 +58,6 @@ struct EnhancementShortcutsView: View { } } -struct EnhancementShortcutsSection: View { - @State private var isExpanded = false - - var body: some View { - VStack(spacing: 0) { - Button { - withAnimation(.spring(response: 0.35, dampingFraction: 0.85)) { - isExpanded.toggle() - } - } label: { - HStack(spacing: 12) { - Text("Enhancement Shortcuts") - .font(.headline) - .foregroundColor(.primary) - - Spacer() - - Image(systemName: "chevron.down") - .rotationEffect(.degrees(isExpanded ? 0 : -90)) - .foregroundColor(.secondary) - .font(.system(size: 13, weight: .medium)) - } - .padding(.horizontal, 16) - .padding(.vertical, 12) - .contentShape(Rectangle()) - } - .buttonStyle(.plain) - - if isExpanded { - Divider() - .transition(.opacity) - - EnhancementShortcutsView() - .padding(.horizontal, 16) - .padding(.vertical, 12) - .transition( - .asymmetric( - insertion: .opacity.combined(with: .scale(scale: 0.98, anchor: .top)), - removal: .opacity - ) - ) - } - } - .frame(maxWidth: .infinity, alignment: .leading) - .background(CardBackground(isSelected: false)) - } -} - // MARK: - Supporting Views private struct KeyChip: View { let label: String