Where to Go From Here?
You can download the completed project for this tutorial here.
To learn more about the kinds of animations you can do, check out Chapter 17, “Presentation Controller & Orientation Animations” in iOS Animations by Tutorials.
This tutorial focuses on modal presentation and dismissal transitions. It’s important to point out that custom UIViewController transitions can also be used when using container view controllers:
- When using a navigation controller, vending the animation controllers is the responsibility of its delegate, which is an object conforming to
UINavigationControllerDelegate
. The delegate can provide an animation controller in navigationController(_:animationControllerFor:from:to:)
.
- A tab bar controller relies on an object implementing
UITabBarControllerDelegate
to return the animation controller in tabBarController(_:animationControllerForTransitionFrom:to:)
.
I hope you enjoyed this tutorial. If you have any questions or comments, please join the forum discussion below!