5 ms·
> I have no doubt that a future bottom up redo of a UI component framework (UIMS) will embrace constraints for both document and form layout. Welcome to the fu
by kenferry 13y ago
> I have no doubt that a future bottom up redo of a UI component framework (UIMS) will embrace constraints for both document and form layout.
Welcome to the future! Cocoa's new(ish) layout system, Auto Layout, is constraint based.
> Partially because the UI components do not have the built-in smarts, such as anchors for text baselines.
In Cocoa, you can constrain two views to align by baseline, and each view handles what "baseline" means for itself. Built in views (labels, buttons, etc.) behave as you'd expect.
- specialist 13y agoThanks. I should look at Auto Layout. My hobby iOS project (a few years back) made me want to stab myself.