Missing one line, height for flashcard

This commit is contained in:
Avery Pace 2021-11-08 12:25:57 -05:00
parent 3bce439bc4
commit a1eadd6772

View File

@ -238,7 +238,7 @@ struct FlashCard: View {
Text("") Text("")
.modifier(CardFlipModifier(isFaceDown: isFaceDown, frontText: dictionaryEntry.word, backText: concatenateDefinitions())) .modifier(CardFlipModifier(isFaceDown: isFaceDown, frontText: dictionaryEntry.word, backText: concatenateDefinitions()))
.frame(width: 0.8 * screen.width) .frame(width: 0.8 * screen.width, height: 200)
.offset(x: isFaceDown ? -dragAmount : dragAmount, y: abs(dragAmount) / 10) .offset(x: isFaceDown ? -dragAmount : dragAmount, y: abs(dragAmount) / 10)
.rotationEffect(.degrees(isFaceDown ? -(dragAmount / 50) : dragAmount / 50)) .rotationEffect(.degrees(isFaceDown ? -(dragAmount / 50) : dragAmount / 50))
.font(.title) .font(.title)