It allows UI creation to be more visual and easier to use.
There are situations in which storyboards should be used:
- Beginner Developer
- Implementing the Static part of your application
“What you see is what you get”
Downsides to storyboards are:
- Merge conflicts
- Working with Segues
- Overall kinda “messy” (from personal experience)
A single XIB represents only one visual element. Perfect for when the same element is repeated across an application.
A good advantage of XIBs is reusability. As seen above, for collection views, I used XIBs file to repeat the same UI.
The downside is conflicts caused.
SnapKit is used to make AutoLayout easier to use.
Create a Podfile and add the following lines from the tutorial of SnapKit. Then update Podfile.
Makes constraint writing easier, since AutoLayout can somewhat be tedious at times.