relays: fix withAnimation on older versions

Maybe this is an iOS17 thing?
This commit is contained in:
William Casarin
2023-09-13 05:39:45 -07:00
parent 16edc3fe13
commit 1fc5ceff3b

View File

@@ -157,13 +157,13 @@ struct RelayConfigView: View {
if state.keypair.privkey != nil { if state.keypair.privkey != nil {
if showActionButtons { if showActionButtons {
Button("Done") { Button("Done") {
withAnimation(.bouncy) { withAnimation {
showActionButtons.toggle() showActionButtons.toggle()
} }
} }
} else { } else {
Button("Edit") { Button("Edit") {
withAnimation(.bouncy) { withAnimation {
showActionButtons.toggle() showActionButtons.toggle()
} }
} }