ios - UIViewController Interactive Transition error when cancelled -


i have custom transition between 1 uiviewcontroller (vc1) , modal uiviewcontroller (vc2). interactively hide vc2 uipangesturerecognizer.

when pan gesture finishes , translation in y axis equal or more 100pt, finish transition finishinteractivetransition(). otherwise cancel transition cancelinteractivetransition().

vc1

enter image description here

vc2

enter image description here

transition between vc1 , vc2

enter image description here

when transition cancelled because pan gesture translation less 100pt, expected behaviour revert custom transition animation , show vc2 again instead of this, vc1 shown.

you can download project github.


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

android - CoordinatorLayout, FAB and container layout conflict -