CardView添加动画
This commit is contained in:
@@ -39,6 +39,8 @@ struct CardView: View {
|
|||||||
.fixedSize()
|
.fixedSize()
|
||||||
.shadow(radius: 10)
|
.shadow(radius: 10)
|
||||||
.disabled(userCanAnswer == false)
|
.disabled(userCanAnswer == false)
|
||||||
|
.transition(.push(from: .top))
|
||||||
|
.id(card)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user