Giter Site home page Giter Site logo

qmathe / distancepicker Goto Github PK

View Code? Open in Web Editor NEW
119.0 4.0 19.0 60 KB

Custom UIKit control to select a distance with a pan gesture, written in Swift

License: MIT License

Swift 92.39% Objective-C 2.41% Ruby 5.21%
swift ios picker distance control radius search uikit ui

distancepicker's Introduction

Distance Picker

Build Status Platforms iOS Language Swift 4 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 at least Xcode 9 and supports iOS 8 or higher.

Swift DistancePicker
5 0.8.4 or master
4.2 0.8.3 or branch swift-4.2
4.X 0.8.2 or branch swift-4.1
3.X 0.8.1 or branch swift-3.2

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 into your Xcode project and link MapKit.

distancepicker's People

Contributors

muhammadrizwananjum avatar qmathe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

distancepicker's Issues

touchesMoved

Is it possible to add the touchesMoved event to the framework?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.