Informs the delegate of the progress through the preview phase of the preview interaction.
- iOS 10.0+
The preview interaction associated with the current user input
The progress through the preview phase of the transition. A
CGFloatwith a value from
A Boolean whose value indicates whether the preview phase of the transition is complete
This method is called repeatedly during the preview phase of the preview interaction. Use the supplied
transition parameter to update the UI to reflect the progress of the interaction. For example, the peek effect in view controller preview transitions progressively blurs everything except the appropriate view.
ended parameter is
false throughout the preview phase and becomes
true as the phase is completed. The preview interaction then transitions to the commit phase, so you should use this point to update the UI as required.