Introduction
The difference between a good app and a great app often comes from the little details. Animations can make your app more fun and easier to use. Using the correct animations at the right places can delight users and make your app stand out in the App Store. They can play a decisive role in drawing the user’s attention to certain areas of the view.
Animation is much simpler in SwiftUI than in UIKit or AppKit. SwiftUI animations are higher-level abstractions that handle all the tedious work for you. If you have experience with animations on Apple platforms, much of this chapter will seem familiar. You’ll find it a lot less effort to produce animations in your app using SwiftUI. You can combine or overlap animations and interrupt them without care. Much of the complexity of state management goes away as you let the framework deal with it, freeing you up to make great animations instead of handling edge cases and complexity.
Once you understand the basics of animation, you’ll learn about a subset of animations called view transitions. These animations apply when SwiftUI adds or removes a view from your app.
By the end of this lesson, you’ll be able to:
- Apply animations and transitions to enhance the user experience.
- Demonstrate the use of advanced animation techniques, such as spring-based animations and explicit animations.
It’s time to get (your app) moving!