From 287c9fb8acdf36e0ca9a59e39fc563e8d9475003 Mon Sep 17 00:00:00 2001 From: Avery Pace Date: Mon, 8 Nov 2021 15:00:21 -0500 Subject: [PATCH] fix animation --- Toki Trainer/Views/FlashCardView.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Toki Trainer/Views/FlashCardView.swift b/Toki Trainer/Views/FlashCardView.swift index d13f824..24945f9 100644 --- a/Toki Trainer/Views/FlashCardView.swift +++ b/Toki Trainer/Views/FlashCardView.swift @@ -245,6 +245,7 @@ struct FlashCard: View { .font(.title) .rotation3DEffect(self.isFaceDown ? Angle(degrees: 180) : Angle(degrees: 0), axis: (x: 0.0, y: 10.0, z: 0.0)) .animation(.default, value: isFaceDown) + .animation(.default, value: dragAmount) .onTapGesture { if self.isInteractive == true { self.isFaceDown.toggle()