Hero icon indicating copy to clipboard operation
Hero copied to clipboard

viewWillAppear / viewWillDisappear will be called when doing interactive transition

Open PatrickSCLin opened this issue 9 years ago • 2 comments

Is because view is added / removed by hero at this moment ?

How do I detect that view is operated by hero or parent ?

PatrickSCLin avatar May 18 '17 02:05 PatrickSCLin

Think this is expected. Transition will trigger a viewWillDisappear when your view controller is being dismissed. And if your interactive transition cancels, viewWillAppear will be called. This is also true for other transitions.

lkzhao avatar Jul 02 '17 16:07 lkzhao

Can I detect viewWillApear is called by Hero ?

I have done something in this method but I don't expect it runs when hero transition is running

PatrickSCLin avatar Jul 12 '17 09:07 PatrickSCLin