How do I implement MKAnnotation.setCoordinate in a key-value observing compliant way?

According to this documentation https://developer.apple.com/documentation/mapkit/mkannotationview/1452401-isdraggable if I set an annotation as draggable, I must also implement setCoordinate.

 

According to this documentation, https://developer.apple.com/documentation/mapkit/mkannotation/1429528-setcoordinate if I implement setCoordinate I must do so in a key-value observing compliant way.

 

Have any of you experience with this? Would you show me how this is done? How do you write code that is key-value observing compliant?

Powered by WPeMatico

About

You may also like...

Comments are closed.