Search code examples
xcodeswiftmkmapviewmapkit

MKMapVIew Rounded Swift


I would like to know if is there anyway that I can make a MapView a circle, I tried using, mapView.layer.cornerRadius, but it didn't worked. Any suggestions?


Solution

  • Remember to set the masksToBounds property of the layer to YES, in addition to setting a corner radius.