4 ms·
My only question is.. why? Being someone who’s used autolayout on iOS and flex/grid on the web, I much prefer flex/grid.
by willio58 5y ago
My only question is.. why? Being someone who’s used autolayout on iOS and flex/grid on the web, I much prefer flex/grid.
- happytoexplain 5y agoI've also used both, and I strongly prefer autolayout. The ability to declaratively define relationships between any two attributes of any two views is like having a superpower. You can make incredibly complex, resilient, well defined interfaces in no time. That said, it has serious downsides, like cognitive load and debuggability.
- atom_arranger 5y agoI second this. As someone who used to do iOS dev with autolayout, then switched to React Native/web, autolayout is way more powerful. IMO platforms should consider implementing autolayout, and from autolayout other simpler layout systems (e.g. flexbox) can easily be implemented and used when the full power of autolayout isn’t needed. Considering autolayout has been used for iOS layout for a long time performance seems not to be an issue (with native, not JS, implementations), even though it may seem more complicated (constraint solving).
- nexuist 5y agoFor iOS developers transitioning to Web I think this would make a pretty great stepping stone between the platforms. Nothing wrong with bringing something familiar with you!