Member-only story

Animate UIViewController Transitions with UIViewControllerAnimatedTransitioning

Make it nice, please!

Steven Curtis
3 min readJul 22, 2022
Photo by Patrick Hendry on Unsplash

Prerequisites:

You will need to be familiar with the basics of Swift and able to start a Playground (or similar)

Terminology:

UIViewControllerAnimatedTransitioning: A set of methods for implementing the animations for a custom view controller transition

Wouldn’t it be nice?

If we could use UIViewControllerAnimatedTransitioning to make a nice transition from a UICollectionView to a detail view?

What? It would?

The trivialities

Yes, that is a UICollectionView that displays the data. Rather than using an endpoint I’m using an internal JSON file. Here’s the JSON with just the first person:

which is then decoded from the main bundle using an extension

--

--

No responses yet