An object that drives an interactive animation between one view controller and another.
- iOS 7.0+
- tvOS 9.0+
A percent-driven interactive transition object relies on a transition animator delegate—a custom object that adopts the
UIView protocol—to set up and perform the animations.
To use this concrete class, return an instance of it from your view controller delegate when asked for an interactive transition controller. As user events arrive that would affect the progress of a transition, call the
finish() methods to reflect the current progress. For example, you might call these methods from a gesture recognizer to reflect how much of the gesture is completed.
You can subclass
UIPercent, but if you do so you must start each of your method overrides with a call to the
super implementation of the method.