I'm terrible with animations, but luckily
#GPT4
is not. I gave it the screenshot on the left and in 5 seconds it generated me the working
#SwiftUI
version on the right.
I've found multiple times now that GPT4 is great for this use case.
Prompt and code in the comments.