ios - Why presenting controller's view.transform gets reset on dismissal? -
i started custom uiviewcontroller transitions using uiviewcontrolleranimatedtransitioning
. went fine, when dismiss view, topography of presenting view beneath (green) gets reset.
you can see cover, , push transitions. | click gif |
if listen cover transition carefully, can see problem. click dismiss, presenting (green) view get's transformed fullscreen, while it's alpha
works expect (!). stays on 0.5
, animate toward 1.0
should be. not case transform
of frame
properties.
same goes push transition, presenting controller's view gets reset right after click. modal view fine.
i've put the project github, made helper class cut down boilerplate, you'll point. see eppzpartialcover
transition implementation.
because of animation option uiviewanimationoptionbeginfromcurrentstate
. removed animation option, , transition works expected.
Comments
Post a Comment