Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restore call pattern where UIView methods drive __enterHierarchy and …
…__exitHierarchy for view-backed nodes (#1561) After #1396, some view-backed nodes in our app stop responding to tap events. I tracked it down to [this change](https://github.com/TextureGroup/Texture/pull/1396/files#diff-7fbc7d84a259cbfbee7546a5310dddcfR162) which suggests that the order of execution matters. This diff attempts to fix the issue by restoring the previous call order where `__enterHierarchy` and `__exitHierarchy` are driven by `_ASDisplayView`'s `-willMoveToWindow:` and `-didMoveToWindow` if the node is view-backed. Layer-backed nodes will still call `__enterHierarchy`/`__exitHierarchy` when they get `kCAOnOrderIn`/`kCAOnOrderOut`. This maintains the layer-action support introduced in #1396.
- Loading branch information