AsyncDisplayKit icon indicating copy to clipboard operation
AsyncDisplayKit copied to clipboard

Problem try custom transition animation use pop

Open smalllixin opened this issue 10 years ago • 4 comments

I'm trying to use POP animation work with the latest AsyncDisplayKit (2.0 beta). So enable automaticallyManagesSubnodes and override animateLayoutTransition: . And write the animation their. I found things goes correct if use [UIView animationWithDuration:]. But the POP animation will get a unexpected flash. The example upload to https://github.com/smalllixin/aspop_transition Hope get help. Thanks in advance.

smalllixin avatar Sep 09 '16 03:09 smalllixin

@smalllixin: Pop should work with ASDK and I don't see anything that is obviously wrong with your code. Could you try on the latest master? Some changes to automaticallyManagesSubnodes were made in the last few days that may help.

FYI - it is safe to call addTarget:action: in init: of the ASDisplayNode (instead of didLoad) if you prefer.

hannahmbanana avatar Sep 09 '16 04:09 hannahmbanana

Hi @hannahmbanana . Thanks for your replying. And I'm sure use the latest AsyncDisplayKit on master I record a video show the problem. The problem is the flying block directly appear to the final position(one moment) then run the animation. https://youtu.be/ceiJaMA3T8g

Besides, preferredFrameSize is deprecated. Should I replace with node.size(ASLayoutableSize) ?

smalllixin avatar Sep 09 '16 07:09 smalllixin

@smalllixin I believe that flashing animation is a pop bug, I have seen it many times before

ArEnSc avatar Sep 24 '16 19:09 ArEnSc

Closing this for now, if you have more info, please reply back!

hannahmbanana avatar Nov 08 '16 18:11 hannahmbanana