Open BrandonMA opened 6 years ago
animator.addBehavior
causes layoutSublayers
in CALayer.
Then Texture lays out subnodes again according to the calculated layout.
That's why dragged box would back to its original position.
To prevent, overriding frame property and skipping setting frame while animating.
I'm trying to use UIDynamics with texture, just moving a node to a tap(UITapGestureRecognizer) and animating with UISnapBehavior, but if you run the code I'm posting you will see that the animation is not executed but it jumps to the final state instead. Probably because layout() is getting called, any idea how to use UIDynamics with Texture?
`import AsyncDisplayKit
class SFExperimentNode: ASDisplayNode {
}
class SFExperimentController: ASViewController {
}`