Latest 0.8
Homepage https://github.com/qmathe/DistancePicker
License MIT
Platforms ios 8.0
Frameworks MapKit
Authors

Distance Picker

Build Status
Platforms iOS
Language Swift 2.2
License MIT

DistancePicker is a custom UIKit control to select a distance with a pan gesture. It looks like a ruler with multiple distance marks and can be used to resize a map, set up a geofence or choose a search radius.

Screenshot

To see in action, take a look at Placeboard demo video.

Compatibility

DistancePicker requires iOS 7 or higher and is written in Swift 2.2.

Note: If you use Carthage, CocoaPods or manually install it as a framework, iOS 8 is required.

Installation

Carthage

Add the following line to your Cartfile, run carthage update to build the framework and drag the built DistancePicker.framework into your Xcode project.

github "qmathe/DistancePicker"

CocoaPods

Add the following lines to your Podfile and run pod install with CocoaPods 0.36 or newer.

use_frameworks!

pod "DistancePicker"

Manually

If you don’t use Carthage or CocoaPods, it’s possible to drag the built framework or embed the source files into your project.

Framework

Build DistancePicker framework and drop it into your Xcode project.

Files

Drop DistancePicker.swift and UIGestureRecognizer+MissingPublicAPI.h into your Xcode project, add #import <DistancePicker/UIGestureRecognizer+MissingPublicAPI.h> to your bridging header and link MapKit.

Note: If you don’t use a bridging header, you must create one and declare it in Build Settings > Swift Compiler – Code Generation > Objective-C Bridging Header.

Latest podspec

{
    "name": "DistancePicker",
    "version": "0.8",
    "summary": "UIKit control to select a distance with a pan gesture, written in Swift",
    "description": "DistancePicker is a custom UIKit control to select a distance with a pan gesture. It looks like a ruler with multiple distance marks and can be used to resize a map, set up a geofence or choose a search radius.",
    "homepage": "https://github.com/qmathe/DistancePicker",
    "screenshots": "http://www.quentinmathe.com/github/DistancePicker/Add%20Place%20with%20Search%20Radius%20-%20iPhone%205.jpg",
    "license": "MIT",
    "authors": {
        "Quentin Mathu00e9": "[email protected]"
    },
    "social_media_url": "http://twitter.com/quentin_mathe",
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/qmathe/DistancePicker.git",
        "tag": "0.8"
    },
    "source_files": [
        "*.swift",
        "*.{h,m}"
    ],
    "public_header_files": "*.h",
    "frameworks": "MapKit"
}

Pin It on Pinterest

Share This