Missing one line, height for flashcard
This commit is contained in:
parent
3bce439bc4
commit
a1eadd6772
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user