Swift: Moving annotations on MapView

2.9k Views Asked by At

I have a set of coordinates. I'm able to place custom annotations on the map but I couldn't move that annotation from one coordinate to another.

Basically, I'm running a loop to read each coordinate and trying to move annotation to that new coordinate.

I searched for resources online and found this project very similar to my requirement. But that was written in Objective-C. I started developing iOS apps with Swift, so I have no idea about ObjC.

Any solution to this issue?

1

There are 1 best solutions below

3
On BEST ANSWER

You want to change annotation.coordinate.