I’ve seen flipping card animations done with SwiftUI.
However, I’d like to achieve the following effect (see gif): move an element from A to B and animate the transition as if it’s like a flipping a page on a book.
The code is set up such that on clicking the left tile, I create a copy of that tile, then mirror it, and put that copy to the right tile, then I change the left tile’s color to black.
However, I couldn’t figure out how to do the transition.