title: Xcode, Swift: How to center popover box
body: <p>Link to my github account with files, simply download zip: <a href="https://github.com/jzhang172/modalTest" rel="nofollow noreferrer">https://github.com/jzhang172/modalTest</a></p>
  
  <p>When I click on the "popover" link, I would like to center the popover in the center of the screen.  </p>
  
  <p>I tried referencing some stackoverflow questions such as: 
  <a href="https://stackoverflow.com/questions/31759615/how-to-center-a-popoverview-in-swift">how to center a popoverview in swift</a></p>
  
  <p>but no luck.  I'm a noob in swift and I'm only using swift, not objective C.</p>
  
  <p>Screenshot of what I see:
  <a href="https://i.stack.imgur.com/UJHjA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UJHjA.png" alt="enter image description here"></a></p>