title: swift popovers without storyboard? XIB
body: <p>I was wondering if anyone has figured out how to work with popovers in an iphone but not using storyboards?</p>
  
  <p><a href="https://stackoverflow.com/questions/25319179/uipopoverpresentationcontroller-on-ios-8-iphone/25656733#25656733">helpful but not quite</a></p>
  
  <p>This was the closest one I was able to find, but the second answer which was the closest one, works with a navigation controller, and in my case my filterVC is not initialized with storyboard. Does anyone know of any other method to create a popover in iphone using xib? Currently I keep getting a nil error here:</p>
  
  <pre><code>popoverPresentationViewController!.sourceView = self.view;
  </code></pre>
  
  <p>ty! </p>