setCenter(_:animated:)
Changes the center coordinate of the map, and optionally animates the change.
Declaration
func setCenter(_ coordinate: CLLocationCoordinate2D, animated: Bool)Parameters
Discussion
Changing the center coordinate centers the map on the new coordinate without changing the current zoom level. It also updates the value in the region property to reflect the new center coordinate and the new span values needed to maintain the current zoom level.