During my last project, there was a need to load UIView classes from xib files. It’s pretty simple with the following method which takes two arguments: the xib name (without xib extension) and the Class of the UIView subclass.
After emedding the snippet, just create a new subclass of UIView class and a xib file with a view. Then, just type in your custom class just like in the picture and connect outlets and actions you declared in the class.
