I'm making a location-based game in Swift where the user views a map, several pins need to pop up at random spots near the edges of the view and then start moving toward the user's location. Is this possible? What method would I even look into to do this? The closest thing I can seem to find has to do with simulating routes, but that seems needlessly complex when I don't need the pins to navigate around buildings or anything, just go directly to the user's location.
Asked
Active
Viewed 883 times
1 Answers
1
Have a look at this Animate MapKit annotation coordinate change in Swift?, and it's answer.
Also How to animate mapView annotations from one location to another?
They're basically changing the annotation's location in a UIView.animateWithDuration:
block.