I want to convert an MKMapPoint to a NSValue. In Objective-C i can do it with the following statement:
MKMapPoint point = MKMapPointForCoordinate(location.co
I think Leo's answer isn't correct anymore, I managed to convert array of MKMapPoint to an array of CGPoint with the code below :
let polygonView = MKPolygonRenderer(overlay: overlay)
let polyPoints = polygonView.polygon.points() //returns [MKMapPoint]
var arrOfCGPoints : [CGPoint] = []
for i in 0..
And to NSValue :
ler someCgPoint = arrOfCGPoints[0]
var pointObj = NSValue(CGPoint: someCgPoint)