3 ms·
I guess autolayout and CSS are the pointers of UI development. For some it clicks, for others it does not. I've enjoyed making layouts in CSS even before flexbo
by rimliu 9y ago
I guess autolayout and CSS are the pointers of UI development. For some it clicks, for others it does not.
I've enjoyed making layouts in CSS even before flexbox and grid, and I have no problems doing it using autolayout. But there are problems if you are not using AL.
Having layout guides and anchors makes it much easier compared to pre iOS9 days. Just don't do it in IB—it may look easier this way, but it is a pain to debug. I find myself leaning more and more on UI creating in code only, so much more flexible and gives more control.
Manipulating frames may seem to give more control, but I think it takes even more away, introduces unneeded complexity (missing out on layout guides, size classes, intrinsic size, easy control for compressibility/content hugging, etc.).
I wonder how many devs who used frames for layout are regretting this decision while fixing their apps for iPhone X.