Asks your animator object for the duration (in seconds) of the transition animation.
- iOS 7.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
The context object containing information to use during the transition.
The duration, in seconds, of your custom transition animation.
UIKit calls this method to obtain the timing information for your animations. The value you provide should be the same value that you use when configuring the animations in your
animate method. UIKit uses the value to synchronize the actions of other objects that might be involved in the transition. For example, a navigation controller uses the value to synchronize changes to the navigation bar.
When determining the value to return, assume there will be no user interaction during the transition—even if you plan to support user interactions at runtime.