Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MKCoordinateSpanMake error Xcode 11, iOS 13.2

Tags:

swift

Getting compile time error while using MKCoordinateSpanMake 'MKCoordinateSpanMake' is unavailable in Swift

  1. 'MKCoordinateSpanMake' has been explicitly marked unavailable here (MapKit.MKCoordinateSpanMake)
like image 463
Vipul Arvind Avatar asked Nov 15 '25 21:11

Vipul Arvind


2 Answers

MKCoordinateRegionMake was renamed to MKCoordinateRegion
MKCoordinateSpanMake was renamed to MKCoordinateSpan

like image 154
Omar Castaño Avatar answered Nov 18 '25 13:11

Omar Castaño


Call MKCoordinateSpan init(latitudeDelta: CLLocationDegrees, longitudeDelta: CLLocationDegrees) instead.

like image 29
matt Avatar answered Nov 18 '25 13:11

matt



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!