multi colored paper on brown cardboard box

100 Days of SwiftUI: Project 6 – Animation

For this project, we discover how quick it is to add simple but pleasing animation to an app.

We learn about implicit and explicit animation (although I’m still struggling with the difference, to be honest) as well as the various different animation types available to us. Near the end Paul also demonstrates how to create a completely custom animation effect, which is pretty impressive.

You may have noticed it’s been a while since my last post. That’s because I found this topic quite hard to follow and had to work through it more than once. Even then I still feel like I don’t have a great grasp on it.

Challenge

Our challenge was to revisit Guess The Flag from project 2 and add some animations when selecting flag buttons. I had some trouble with this one and in the end I had to pony up $20 to see the solution video so I’m not going to pass this code off as my own. You can see the changes I made to the app in this commit.

Result

Guess the Flag on GitHub