Informs the delegate of the preview interaction's progress through the commit phase.
- iOS 10.0+
The preview interaction associated with the current user input
The progress through the commit phase of the transition. A
CGFloatwith a value from
A Boolean whose value indicates whether the commit phase of the transition is complete
This method is called repeatedly during the commit phase of the preview interaction. Use the supplied
transition parameter to update the UI to reflect the progress of the interaction. For example, the pop effect in view controller preview transitions progressively increases the size of the child view controller as the transition progresses.
ended parameter is false throughout the commit phase and becomes
true when the phase is completed. At this point, the preview interaction is complete, and you should update the UI appropriately. For example, in view controller preview interactions, the child view controller becomes the main view controller.