Hey! I don’t use storyboards or xib very often in my projects, but if I do, I use exact the same approach for xib-based views, as I mentioned above. For me, xib is a the great tool for simple views, when you don’t want to mess with Autolayout in code, expecially when you deal with dynamicly-sized labels. For those who use Autolayout in code, I can recommend Swiftly (credit to Savant Systems, where I have a proud to work before). This will make the whole process much more clearer and enjoyable. For example, to pin the view to all 4 screen margins, you just need one line of code:
Another case when I prefer xib approach, is when I need to change constraints in run-time: changing or activating/deactivation them in code may be painful and not super-clear.