Xcode template for UIView with Xib
- Download Swift-View-Template or clone the project
- Copy the
User Interface
folder to~/Library/Developer/Xcode/Templates/File Templates/
. - Add the NibView file and the ViewExtension extension to your project.
- Create a new file (
File > New > File
or⌘N
) - Choose
User Interface
andUIView-Xib
View file
Xib