As we saw in Chapter 13, Basic Animation in Views, animations can play a part in making a big difference to any app, no matter how small the change is. But if there is one thing that can complement an animation, it's a transition effect.
In this chapter, we are going to start by covering the basic transitions available to us from SwiftUI. We'll look at how and when we can use these with animations and what effect they'll have on our views.
We'll also cover some slightly more advanced syntax in order to not only optimize our code but improve how the animation takes place.
Once we've done that, we'll go back to our Recipe app for the last time and add some finishing touches.
The following topics will be covered in this chapter:
- Basic transitions
- Advanced transitions
- Adding transitions to our app