title: How to load popover in swift
body: <p>I am trying to get a popover working in swift.</p>
  
  <p>The view i am trying to put into the popover is in its own separate xib.</p>
  
  <p>The code to load is below</p>
  
  <pre><code>    let view = OrganisationDetails()
      view.modalPresentationStyle = .Popover
      let popoverMenuViewController = view.popoverPresentationController
      view.preferredContentSize =  CGSizeMake(550,550)
      popoverMenuViewController?.permittedArrowDirections = .Any
      popoverMenuViewController?.delegate = self
      popoverMenuViewController?.sourceView = sender
      popoverMenuViewController?.sourceRect = CGRect(x: 1, y: 1, width: 60, height: 60)
      presentViewController(view, animated: true, completion: nil)
  </code></pre>
  
  <p>What is happening atm is the popover is loading totally blank and not displaying the view.</p>
  
  <p>Any ideas what I'm doing wrong</p>
  
  <p>Thanks</p>