Search code examples
iosasyncdisplaykitcomponentkit

ComponentKit vs AsyncdisplayKit


I'm developing a social app, there is a main feature, "feeds".

so far It works with auto layout, everything is fine, but considering the cost of advanced development and maintenance in the future, I am looking for other async UI solutions.

I think ComponentKit, AsyncDisplayKit are what I looking for

but which one is better for me ?

both of them are supported async ui layout, and network image placeholder and cache ?

what's the difference between ComponentKit and AsyncDisplayKit ?

which one is better for complex feeds design ?

include : swift native / friendly, async ui layout, image cache & placeholder, complex feed style (horizontal cells in vertical cell) ... etc


Solution

  • Component Kit - Large Declarative (a lot of code by file) layouts without access to animation and frames. AsyncDisplayKit - Small, laconic, declarative layouts, if you override layoutSubview method you can block ASyncDisplayKit to calculate frame, and do yourself animation by direct access to the view's frame.

    My choice AsyncDisplayKit its more friendly, easy to make, hard layouts in minutes.