iOS Animations by Tutorials
Marin Todorov
Copyright ©2022 Razeware LLC.
Notice of Rights
All rights reserved. No part of this book or corresponding materials (such as text,
images, or source code) may be reproduced or distributed by any means without
prior written permission of the copyright owner.
Notice of Liability
This book and all corresponding materials (such as source code) are provided on an
“as is” basis, without warranty of any kind, express of implied, including but not
limited to the warranties of merchantability, fitness for a particular purpose, and
noninfringement. In no event shall the authors or copyright holders be liable for any
claim, damages or other liability, whether in action of contract, tort or otherwise,
arising from, out of or in connection with the software or the use of other dealing in
the software.
Trademarks
All trademarks and registered trademarks appearing in this book are the property of
their own respective owners.
iOS Animations by Tutorials iOS Animations by Tutorials
raywenderlich.com
2
Table of Contents: Overview
Book License 13.............................................................................................
Before You Begin 14................................................................
What You Need 15........................................................................................
Book Source Code & Forums 16.............................................................
Introduction 19..............................................................................................
Section I: Animations With SwiftUI 23.............................
Chapter 1: Introduction to Animations With SwiftUI 24..
Chapter 2: Intermediate SwiftUI Animations 42.................
Section II: View Animations 59............................................
Chapter 3: Getting Started With View Animations 60......
Chapter 4: Springs 74......................................................................
Chapter 5: Transitions 84..............................................................
Chapter 6: View Animations in Practice 99............................
Chapter 7: Keyframe Animations 112......................................
Section III: Auto Layout 123.................................................
Chapter 8: Introduction to Auto Layout 124.........................
Chapter 9: Animating Constraints 144....................................
Section IV: Layer Animations 164.......................................
Chapter 10: Getting Started With Layer Animations 165
Chapter 11: Animation Keys & Delegates 185.....................
Chapter 12: Groups & Advanced Timing 197........................
iOS Animations by Tutorials
raywenderlich.com
3
Chapter 13: Layer Springs 208....................................................
Chapter 14: Layer Keyframe Animations & Struct
Properties 221...................................................................................
Chapter 15: Shapes & Masks 228...............................................
Chapter 16: Gradient Animations 242.....................................
Chapter 17: Stroke & Path Animations 251...........................
Chapter 18: Replicating Animations 261................................
Section V: View Controller Transition
Animations 281.........................................................................
Chapter 19: Presentation Controller & Orientation
Animations 282..................................................................................
Chapter 20: UINavigationController Custom
Transition Animations 304............................................................
Chapter 21: Interactive UINavigationController
Transitions 321..................................................................................
Section VI: Animations With
UIViewPropertyAnimator 333............................................
Chapter 22: Getting Started With
UIViewPropertyAnimator 334....................................................
Chapter 23: Intermediate Animations With
UIViewPropertyAnimator 349....................................................
Chapter 24: Interactive Animations With
UIViewPropertyAnimator 366....................................................
Chapter 25: UIViewPropertyAnimator View
Controller Transitions 385............................................................
iOS Animations by Tutorials
raywenderlich.com
4
Section VII: 3D Animations 403..........................................
Chapter 26: Simple 3D Animations 404..................................
Chapter 27: Intermediate 3D Animations 415.....................
Conclusion 429..............................................................................................
iOS Animations by Tutorials
raywenderlich.com
5