From 1753a4a85d30f0aa0696cffc90e55d8f8f18dac4 Mon Sep 17 00:00:00 2001 From: Ryan ZHAO <> Date: Thu, 4 Jul 2024 11:51:02 +1000 Subject: [PATCH] add animation --- Session/Settings/RecoveryPasswordScreen.swift | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Session/Settings/RecoveryPasswordScreen.swift b/Session/Settings/RecoveryPasswordScreen.swift index 828f583b4..89c2e9126 100644 --- a/Session/Settings/RecoveryPasswordScreen.swift +++ b/Session/Settings/RecoveryPasswordScreen.swift @@ -86,7 +86,9 @@ struct RecoveryPasswordScreen: View { ZStack(alignment: .center) { Button { - self.showQRCode.toggle() + withAnimation(.spring()) { + self.showQRCode.toggle() + } } label: { Text("recoveryPasswordView".localized()) .bold() @@ -160,7 +162,9 @@ struct RecoveryPasswordScreen: View { Spacer(minLength: Values.veryLargeSpacing) Button { - self.showQRCode.toggle() + withAnimation(.spring()) { + self.showQRCode.toggle() + } } label: { Text("qrView".localized()) .bold()