Latest 1.0.0
Homepage https://github.com/iCarambaa/ZoomableMapInteraction
License MIT
Platforms ios 11.0
Frameworks UIKit, MapKit
Authors

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.

Latest podspec

{
    "name": "ZoomableMapInteraction",
    "version": "1.0.0",
    "summary": "Adds a tap and pan interaction to an MKMapView.",
    "description": "ZoomableMapInteraction is an UIInteraction which adds the tap-and-pan behavior seen in Apple Maps to any MKMapView.nIt's only one short file, you can add it either using Cocoapods or by copying to your project.",
    "homepage": "https://github.com/iCarambaa/ZoomableMapInteraction",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Sven Titgemeyer": "[email protected]"
    },
    "source": {
        "git": "https://github.com/icarambaa/ZoomableMapInteraction.git",
        "tag": "1.0.0"
    },
    "social_media_url": "https://twitter.com/s_titgemeyer",
    "platforms": {
        "ios": "11.0"
    },
    "source_files": "ZoomableMapInteraction.swift",
    "frameworks": [
        "UIKit",
        "MapKit"
    ]
}

Pin It on Pinterest

Share This