2

I have a custom transition between one UIViewController (VC1) and a modal UIViewController (VC2). I do it interactively to hide VC2 with UIPanGestureRecognizer.

When the pan gesture finishes and the translation in the y axis is equal or more than 100pt, I finish the transition with finishInteractiveTransition(). Otherwise I cancel transition with cancelInteractiveTransition().

VC1

enter image description here

VC2

enter image description here

Transition between VC1 and VC2

enter image description here

When the transition is cancelled because the pan gesture translation is less than 100pt, the expected behaviour is to revert custom the transition animation and show VC2 again but instead of this, VC1 is shown.

You can download the project from my Github.

jeyoor
  • 938
  • 1
  • 11
  • 20
AdriĆ  Carro
  • 697
  • 1
  • 10
  • 22

0 Answers0