In 2017 MKMarkerAnnotationView was announced to replace MKPinAnnotationView. As described by this WWDC video at 12:21, MKMarkerAnnotationView has three states:
- Normal
- Selected
- Selected with Callout
How do you programmatically set the "Selected with Callout" state so that it displays as it does in the WWDC video? This seems like it should be a super straight forward thing to do, but I see absolutely nothing in the MapKit documentation, the only way I can get it to work reliably is this:
Documentation Links:
