We have looked at some of the elements and functionality of SwiftUI. While we have seen how to create lovely interfaces with composition, it could add a bit of pop if these could be alive. Animation brings the elements to life and makes them more interesting. In this chapter, we shall see some interesting ways to animate and make the elements interesting.
Timers
The traditional way of animation is to use a timer. The theory behind this is that the timer fires every number of seconds that we want, and when this timer fires, we can run the code to update or alter the properties of the ...