I have been following this tutorial in order to load a xib at the push of a button in a view controller: http://www.thomashanning.com/loading-a-view-from-a-xib/
At this line:
if let customView = NSBundle.mainBundle().loadNibNamed("CustomView", owner: self, options: nil).first as? CustomView {
I get the below error: Use of undeclared type 'CustomView'
I have followed the tutorial every step several times and I do not know what I am missing. Can anybody help with an idea of what could be wrong?

if let customView ...and get this error also has the same target?