Skip to content

A UIInteraction which adds the tap-and-pan zooming behavior from Apple Maps to any MKMapView.

License

Notifications You must be signed in to change notification settings

iCarambaa/ZoomableMapInteraction

Repository files navigation

ZoomableMapInteraction

Version License Platform

ZoomableMapInteraction 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. Open the example project using

pod try ZoomableMapInteraction

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]

License

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

About

A UIInteraction which adds the tap-and-pan zooming behavior from Apple Maps to any MKMapView.

Resources

License

Stars

Watchers

Forks

Packages

No packages published