Exploring the Fundamentals of SwiftUI
Welcome to Animating SwiftUI Applications! If you picked up this book, then there’s a good chance you are a developer – or aspiring to be one – and you want to learn more about SwiftUI animations. Or maybe you’re fascinated by animations and how they work like I am. I know for me that the first time I played a video game (before the home computer was even available) and saw objects collide and bounce off each other on the screen, I was hooked by animations and the code behind how they worked. Whatever the reason you’re here though, together we will explore the amazing things we can make happen on an Apple device by leveraging the power of SwiftUI’s animation classes, methods, and properties.
This chapter starts with a brief look at the two programming styles, imperative and declarative, and will give you an idea of why Apple introduced the declarative SwiftUI way of coding to the development world. Then...