2 ms·
I've tried using Storyboards and Xibs in the past, but I think they're too annoying in practice for many reasons (some mentioned in the article): - Merge confl
by wsc981 11y ago
I've tried using Storyboards and Xibs in the past, but I think they're too annoying in practice for many reasons (some mentioned in the article):
- Merge conflicts
- Can't effectively search & replace
- Slow to open
- Can't inherit xibs / create subclasses of xibs
- The properties that can be visually edited for a view are quite limited
... and in case a dev opts into auto-layout ...
- Autolayout is like an extra magic layer
So whenever I have the chance, I just implement my views in code, doing all positioning in layoutSubviews. It's not that much more work and it's easy to modify and reason about.