Building better transitions
summary
Shows how to build custom iOS 7 modal transitions using the animatedTransitioning protocol and the container view: add the to‑view, set initial state, animate, then call completeTransition. Recommends durations between ~0.2–0.5s (nav 0.35s vs modal 0.5s), use spring animations, add 3D with m34 perspective on the container’s sublayerTransform, keep shared content as persistent views, and make transitions touchable by using startInteractiveTransition plus a CADisplayLink to update percentComplete.
AI-written summary · about
chapters (17)
- 0:00Introduction to transitions
- 2:36Animation principles for transitions
- 6:11Custom modal transitions in iOS 7
- 8:59Timing and duration guidelines
- 10:03Slow in and slow out curves
- 11:29Follow-through with spring animations
- 11:49Arcs and appeal in 3D
- 13:54Applying 3D perspective transforms
- 16:41Guidelines for 3D transitions
- 17:02Staging with persistent views
- 21:43Interactive transitions over animations
- 23:05Turning animations interactive
- 24:52Gesture-based interactive transitions
- 27:47Velocity matching in animations
- 29:34Completing interactive transitions
- 30:14Updating navigation bar animations
- 31:37Summary and key takeaways
