title: Swift - Custom MKPointAnnotation with Image
body: <p>I am trying to create a custom <code>MKPointAnnotation</code> to use on a map view. It looks very much like the one used in Apple's Photos:</p>
  
  <p><a href="https://i.stack.imgur.com/7nLSk.png" rel="noreferrer"><img src="https://i.stack.imgur.com/7nLSk.png" alt="enter image description here"></a></p>
  
  <p>I will be retrieving a number of photos from a server, along with their location. I then want to display an annotation like the one above, with the image inside the annotation.</p>
  
  <p>I currently have a program that can add a normal <code>MKPointAnnotation</code> at the right coordinate, and can also retrieve the relevant photo from the server.</p>
  
  <p>All I want is to style my <code>MKPointAnnotation</code> to look just like that. </p>
  
  <p>I have tried following other answers but I think this is slightly different because I want to show an image on a template every time.</p>