Summary
Nice job finishing this project! To create the finished animation, we learned how to turn bitmap images into vector files, and then how to turn those vector files into code that we can work with using SwiftUI. Also, we learned how to create and animate a moving outline around almost any shape using the stroke
modifier and timers, and used animation in this project.
Using this project, you can play around with the values. You can make the stroke thicker or thinner, make it move faster or slower, and make it any color of the rainbow.
There are many applications for animating strokes in your apps, too. It can be used for logos, text, and brands, so that they stand out and get noticed; it can be used in game apps to bring the users’ attention to different areas of the screen or can be used anywhere you want to make an app come alive. The uses are only limited by your imagination.
In the next chapter, we will learn how to animate lines in a different way to create...