fix animation

This commit is contained in:
Avery Pace 2021-11-08 15:00:21 -05:00
parent 0ea6d26cbf
commit 287c9fb8ac
1 changed files with 1 additions and 0 deletions

View File

@ -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()