CocoaPods trunk is moving to be read-only. Read more on the blog, there are 11 months to go.

MapScaleView 1.2.2

MapScaleView 1.2.2

Maintained by xattacker.



  • By
  • Xattacker

MapScaleView_iOS_API

a iOS swift Map ScaleView UI View component

Provide a scale view with iOS MKMapView:
avatar

Installation

Cocoapods
MapScaleView can be added to your project using CocoaPods 0.36 or later by adding the following line to your Podfile:

pod 'MapScaleView'

How to use:

let scale_view: UIMapScaleView


scale_view.setup(mapView) // initial 


// implement from MKMapViewDelegate
func mapView(_ mapView: MKMapView, regionDidChangeAnimated animated: Bool)
{
   scaleView.setNeedsLayout()
}