title: Swift Loading a View from a XIB
body: <p>I have been following this tutorial in order to load a xib at the push of a button in a view controller:
  <a href="http://www.thomashanning.com/loading-a-view-from-a-xib/" rel="nofollow">http://www.thomashanning.com/loading-a-view-from-a-xib/</a></p>
  
  <p>At this line:</p>
  
  <pre><code>if let customView = NSBundle.mainBundle().loadNibNamed("CustomView", owner: self, options: nil).first as? CustomView {
  </code></pre>
  
  <p>I get the below error:
  <strong><em>Use of undeclared type 'CustomView'</em></strong></p>
  
  <p>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?</p>