Create a XIB file
Xcode Menu Bar > File > New > File.
Select iOS, User Interface and then “View”:
Give your XIB a name (yes, we are doing a Pokemon example 👾).
Remember to check your target and hit “Create”.
Design your view
To make things easier, set:
Click on the Size Inspector and resize the view.
For this example we’ll be using width 321 and height 256.
Drop some elements into your XIB file like shown below.
Here we’ll be adding an Image View (256x256) and a Switch.