Using UIView.animate and UIViewPropertyAnimator
As I said in the intro, we've come a long way so far with our app, but often, it's the little things that we can do that make a massive difference; you just need to take another look at Chapter 2, Working with Dark Mode, to appreciate that.
In this section, we are going to start by adding some basic animations to our app using the standard practice to achieve a simple yet effective result.
Once we've done that, we'll look at how we can take this much further by refactoring and improving the maintainability of our code base. So, let's get started as we add our first animation to our app.
Creating our first animation
In their most basic form, animations are simple and easy to use. Here is an example of a typical animation that could be performed:
UIView.animate(withDuration: 0.8) { self.cell.familyNameLabel.alpha = 1.0 }
So, what does this mean exactly? Well, the UIView...