I have a custom dismiss animation that uses UIPercentDrivenInteractiveTransition
and UIViewControllerAnimatedTransitioning
. It is initiated by an unwind segue and the transitioning delegate is set up in prepareForSegue:
.
In my presenting view controller, the unwind IBAction keeps getting called as soon as I begin the segue, instead of when the segue is completed. This is problematic since my dismiss animation is gesture driven, so we do not know how long it will take to complete.
Is there a way to know when the segue has completed its animation?
Neither viewWillAppear:
nor viewDidAppear:
seem to get called at the moment of completion, I assume this is because the segue is an unwind segue.