Make the soundfeedback row clickable
This commit is contained in:
parent
ac1a85c056
commit
fca509952f
@ -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")
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user