From 16edc3fe1308dff4ae2677feff49f8078c21b5a5 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Mon, 11 Sep 2023 14:26:40 -0700 Subject: [PATCH] relays: bouncy edit animation --- damus/Views/Relays/RelayConfigView.swift | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/damus/Views/Relays/RelayConfigView.swift b/damus/Views/Relays/RelayConfigView.swift index 9e9ad964..a00ac7de 100644 --- a/damus/Views/Relays/RelayConfigView.swift +++ b/damus/Views/Relays/RelayConfigView.swift @@ -157,11 +157,15 @@ struct RelayConfigView: View { if state.keypair.privkey != nil { if showActionButtons { Button("Done") { - showActionButtons.toggle() + withAnimation(.bouncy) { + showActionButtons.toggle() + } } } else { Button("Edit") { - showActionButtons.toggle() + withAnimation(.bouncy) { + showActionButtons.toggle() + } } } }