iOS & Swift

SwiftUI Animations by Tutorials

The ultimate resource to hone the skills needed to craft any SwiftUI animation that comes to your mind. By Bill Morefield & Irina Galata.

Read for Free with the Personal Plan* * Includes this and all other books in our online library See all benefits
Buy Individually $59.99* *Includes access to all of our online reading features.

2 (1) · 1 Review

Download materials
Buy paperback—Amazon Comments
Save for later
Share

Who is this for?

This book is for Swift developers who are familiar with writing SwiftUI apps, but want to leverage animations of all kinds to take their apps to the next level.

Covered concepts

  • Basic Animations
  • Timing Curves
  • Shape Animations
  • Custom Animations
  • Time-Based Animations
  • SceneKit & SwiftUI
Drive SwiftUI into Motion using Animations!

SwiftUI has absolutely changed our lives when it comes to developer experience and developer productivity. We can make beautiful apps extremely quickly, get instant feedback from SwiftUI previews, and iterate. SwiftUI also enables developers to easily leverage most common animations using simple SwiftUI modifiers,...

more

Before You Begin

This section tells you a few things you need to know before you get started, such as what you’ll need for hardware and software, where to find the project files for this book, and more.

Section I: SwiftUI Animations by Tutorials

1
Toggle description
This chapter provides an introduction to animation in SwiftUI through building an app that lets the user experiment with the different basic animations and compares how different parameters affect those animations.
2
Toggle description
In this chapter, you'll learn about explicit and implicit animations in SwiftUI and how to use interpolation functions to change their behavior.
3
Toggle description
Learn how to enhance your components by animating their appearance or disappearance, using either built-in or custom transitions tailored to your requirements.
4
Toggle description
While going through this chapter, you'll learn how to build a complex custom component by drawing it line-by-line and animating it with SwiftUI.
In this chapter, you'll learn to apply matrice transformations to SwiftUI's `Shape`. Once all the components are ready, you'll enable users to interact with them via different kinds of gestures, like rotating or zooming.
Toggle description
This chapter starts with animating a view in the traditional SwiftUI manner and then explores how to create animations in situations where SwiftUI can't do the work for you.
Toggle description
In this chapter, you'll look at combining separate transitions and animations into a single animation. You'll also look at animating a view based on multiple property changes.
Toggle description
In this chapter, you'll explore `TimelineView`, which creates views that update based on a schedule instead of state changes. You'll then combine this with the `Canvas` view to create an analog timer animation.
Toggle description
You'll build a visual animation combining SwiftUI views and SceneKit animation showing liquid pouring into a view that fills up.
In this chapter, you'll craft a well-known Apple UI component - the Honeycomb apps grid! You'll learn the basics of hexagonal grids and apply some math to precisely recreate the look and feel of the component.