title: popover code in swift 3 not working
body: <p>I tried to make a popover in swift 3 by creating a new view controller and present it as popover within another view controller, i have seen many tutorials but this code doesn't seem to be working on swift 3. Can anyone help? It seems that it gives me an error in the App delegate file. </p>
  
  <p><a href="https://i.stack.imgur.com/6bYeb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6bYeb.png" alt="here I am creating the segue with identifier &quot;popoverInfo&quot; so if the Hola button is pressed, it should show the popover view controller"></a></p>
  
  <pre><code>override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
      if segue.identifier == "popoverInfo" {
  
          let popoverVC = segue.destination
          popoverVC.modalPresentationStyle = UIModalPresentationStyle.popover
          popoverVC.popoverPresentationController!.delegate = self
  
  
  
  
      }
  
  
  
  
  }
  
  func adaptivePresentationStyleForPresentationController(controller: UIPresentationController) -&gt; UIModalPresentationStyle {
      return UIModalPresentationStyle.none
  }
  </code></pre>