ZoomableMapInteraction 1.0.0

ZoomableMapInteraction 1.0.0

Maintained by Sven Titgemeyer.



ZoomableMapInteraction

Version License Platform

ZoomableMapInteraciton is a UIInteraction which can be used to add the tap-and-pan zooming behavior seen in Apple Maps to any MKMapView.

To add the interaction to a mapView you write:

mapView.addInteraction(ZoomableMapInteraction())

You can check the example project which includes only a plain MKMapView with the interaction added.

Requirements

Because this project implements a UIInteraction it requires iOS 11. It depends only on UIKit and MapKit.

Installation

There's only one file, ZoomableMapInteraction.swift, which you can either add to your project directly or you can use cocoapods.

To use cocoapods:

pod 'ZoomableMapInteraction'

Author

Sven Titgemeyer, [email protected]yer-it.de

License

ZoomableMapInteraction is available under the MIT license. See the LICENSE file for more info.