Make the soundfeedback row clickable

This commit is contained in:
Beingpax 2025-11-28 20:45:24 +05:45
parent ac1a85c056
commit fca509952f

View File

@ -228,19 +228,19 @@ struct SettingsView: View {
if soundManager.isEnabled { if soundManager.isEnabled {
Spacer() Spacer()
Button(action: { Image(systemName: "chevron.right")
withAnimation(.easeInOut(duration: 0.2)) { .font(.system(size: 12, weight: .medium))
isCustomSoundsExpanded.toggle() .foregroundColor(.secondary)
} .rotationEffect(.degrees(isCustomSoundsExpanded ? 90 : 0))
}) { .animation(.easeInOut(duration: 0.2), value: isCustomSoundsExpanded)
Image(systemName: "chevron.right") }
.font(.system(size: 12, weight: .medium)) }
.foregroundColor(.secondary) .contentShape(Rectangle())
.rotationEffect(.degrees(isCustomSoundsExpanded ? 90 : 0)) .onTapGesture {
.animation(.easeInOut(duration: 0.2), value: isCustomSoundsExpanded) if soundManager.isEnabled {
withAnimation(.easeInOut(duration: 0.2)) {
isCustomSoundsExpanded.toggle()
} }
.buttonStyle(.plain)
.help("Customize recording sounds")
} }
} }