fix animation

This commit is contained in:
Avery Pace 2021-11-08 15:00:21 -05:00
parent 0ea6d26cbf
commit 287c9fb8ac

View File

@ -245,6 +245,7 @@ struct FlashCard: View {
.font(.title) .font(.title)
.rotation3DEffect(self.isFaceDown ? Angle(degrees: 180) : Angle(degrees: 0), axis: (x: 0.0, y: 10.0, z: 0.0)) .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: isFaceDown)
.animation(.default, value: dragAmount)
.onTapGesture { .onTapGesture {
if self.isInteractive == true { if self.isInteractive == true {
self.isFaceDown.toggle() self.isFaceDown.toggle()