aoberoi / SwiftUI-Set

CS193P Set game using SwiftUI (Spring 2023)
0 stars 0 forks source link

Animatable card flip #3

Open aoberoi opened 1 year ago

aoberoi commented 1 year ago

When a card view goes from the deck to the playArea and when a new game is started, the card transitions from face down to up (or vice versa). This transition would be nicer looking as a flipping animation, instead of the default opacity transition.

The flipping animation might actually help reveal or resolve issues with animations when cards are moved from one place to another (matchedGeometryEffect). The opacity transition is much harder to visually diagnose.

aoberoi commented 7 months ago

Started exploring, but got stuck, and then created a StackOverflow question in order to figure it out. Ref: https://stackoverflow.com/questions/76795526/can-a-swiftui-matchedgeometryeffect-animation-be-combined-with-a-transition.