Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

说说你知道的三方布局开源库,简要对比下,它们的优缺点 #145

Open
tbfungeek opened this issue Feb 19, 2020 · 0 comments

Comments

@tbfungeek
Copy link
Owner

tbfungeek commented Feb 19, 2020

  • Masonary 是基于AutoLayout 方式布局的开源库,是目前用得比较多的一个布局开源库,它的有点是使用上十分简单便捷,缺点是没有基于frame效率高,但是就目前而言已经有所提高了。对于不是非常复杂的项目,可以选用Masonary。
  • YogaKit 是基于frame的布局方式,它的布局是基于flexbox的。在性能和使用上个人感觉都不错。
  • LayoutKit 是基于frame的布局方式,支持swift和objc,使用异步方式布局,支持布局缓存。
  • CounponentKit 使用异步方式布局,支持布局缓存,是从AsyncDisplayKit 剥离出来的。性能上也不错,但是使用上相对较为复杂。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant