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

希望能实现tg_min功能,让视图宽度等于多个视图宽度的最小值,谢谢 #37

Open
changelee82 opened this issue Aug 28, 2019 · 1 comment

Comments

@changelee82
Copy link

我实现这样一个功能:相对布局下,子视图宽度==子视图高度==min(父视图高度,父视图宽度)
可以对数组扩展出一个tg_min的方法,view.tg_width.equal([a.tg_width, b.tg_height, c.tg_width].tg_min),这样的结果就是view的宽度等于a.tg_width, b.tg_height, c.tg_width中的最小值。
非常感谢!!!

@xhl916235259
Copy link

此功能已经在OC版本MyLayout1.9.0中实现,正在进行测试中,不久将会在下一个swift版本同步更新

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

2 participants