mamaral / Neon

A powerful Swift programmatic UI layout framework.
MIT License
4.58k stars 389 forks source link

Propose grouping without explicit size #51

Closed richardtop closed 3 years ago

richardtop commented 8 years ago

Hello, I would like to propose idea of grouping without calculating the size of the group explicitly. In that case, Neon should call sizeToFit on each of the subviews and calculate the total size. In addition to

anchorViewA.groupInCenter(group: .Horizontal, views: [view1, view2, view3], padding: padding, width: size, height: size)

there would be this option

anchorViewA.groupInCenter(group: .Horizontal, views: [view1, view2, view3], padding: padding)

How do you feel about it?

The reason behind this feature is to group multiple items that are of different size.

JanNash commented 6 years ago

I'd love that. Maybe we should go about n implement it?