Re:Grid Style Sheets – Replace CSS with a Constraint-Solver
by archagon on Monday June 08, 2015 @09:19AM
(#9678801)
I agree with your assessment, but for certain use cases, I've found it to be pretty useful. Box-based layout forces you to arrange your view hierarchy in a Towers of Hanoi kind of way, whereas constraint-based layout lets you define relationships between free-floating sibling views directly. Here's[1] a little test I recently worked on; the amount of code to do this was pretty small and conceptually simple.
[1]: https://github.com/archagon/ABExpandingViewController/blob/m...