Build an interruptible custom VC transition
WHAT IT TESTS: The custom transition protocol stack. OUTLINE: A delegate vends an animator (UIViewControllerAnimatedTransitioning) for the visuals and an interactive controller (UIViewControllerInteractiveTransitioning) driven by a pan to scrub progress and…
WHAT IT TESTS: Whether you understand the separation between animation definition and interactive driving. ANSWER OUTLINE: A transitioningDelegate returns an animator conforming to UIViewControllerAnimatedTransitioning, which defines duration and the animation between from and to views in the container. For interactivity it also returns an interaction controller conforming to UIViewControllerInteractiveTransitioning, commonly a UIPercentDrivenInteractiveTransition driven by a pan gesture that calls update, finish, or cancel.
Read the original → interview
- #ios
- #uikit
- #transitions
- #animation
- #gestures
Get five bites like this every day.
Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.