Make the soundfeedback row clickable
This commit is contained in:
parent
ac1a85c056
commit
fca509952f
@ -228,19 +228,19 @@ struct SettingsView: View {
|
||||
if soundManager.isEnabled {
|
||||
Spacer()
|
||||
|
||||
Button(action: {
|
||||
withAnimation(.easeInOut(duration: 0.2)) {
|
||||
isCustomSoundsExpanded.toggle()
|
||||
}
|
||||
}) {
|
||||
Image(systemName: "chevron.right")
|
||||
.font(.system(size: 12, weight: .medium))
|
||||
.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)
|
||||
.rotationEffect(.degrees(isCustomSoundsExpanded ? 90 : 0))
|
||||
.animation(.easeInOut(duration: 0.2), value: isCustomSoundsExpanded)
|
||||
}
|
||||
}
|
||||
.contentShape(Rectangle())
|
||||
.onTapGesture {
|
||||
if soundManager.isEnabled {
|
||||
withAnimation(.easeInOut(duration: 0.2)) {
|
||||
isCustomSoundsExpanded.toggle()
|
||||
}
|
||||
.buttonStyle(.plain)
|
||||
.help("Customize recording sounds")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user