https://github.com/danielcardonarojas/dollargesturerecognizer
Custom gesture recognizers based on $1, $Q algorithms for your iOS projects.
https://github.com/danielcardonarojas/dollargesturerecognizer
algorithms custom dollar gesture ios swift
Last synced: 8 months ago
JSON representation
Custom gesture recognizers based on $1, $Q algorithms for your iOS projects.
- Host: GitHub
- URL: https://github.com/danielcardonarojas/dollargesturerecognizer
- Owner: DanielCardonaRojas
- License: mit
- Created: 2018-08-03T16:26:53.000Z (almost 8 years ago)
- Default Branch: develop
- Last Pushed: 2024-02-22T19:55:25.000Z (over 2 years ago)
- Last Synced: 2025-04-07T05:48:09.206Z (about 1 year ago)
- Topics: algorithms, custom, dollar, gesture, ios, swift
- Language: Swift
- Homepage:
- Size: 187 KB
- Stars: 10
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Dollar Recognizers
[](https://travis-ci.org/DanielCardonaRojas/DollarGestureRecognizer) 
Implements the family of popular dollar recognizers in swift and expose them as a set of custom UIGestureRecognizer
subclasses.
For a detailed discription on how all this works refer to the [papers](http://depts.washington.edu/acelab/proj/dollar/index.html)
For example usage refer to DollarGestureRecognizerExampleVC.swift.
## Features
- Load templates from bezier paths.
- UIGestureRecognizer subclasses for single and multiple stroke patterns.
- XML parsers for loading templates.
- Comes with standard templates loaded in the bundle
## Installation
**Cocoa pods**
```sh
# Add this to your Podfile
pod 'DollarGestureRecognizer', :git => 'https://github.com/DanielCardonaRojas/DollarGestureRecognizer', :branch => 'develop', :tag => 'v1.0.1'
```
## Dollar family algorithms
- [x] $1 recognizer with protractor optimization
- [x] $Q recognizer
- [ ] $P recognizer
- [ ] $N recognizer
## Screenshots

## TODO
- [ ] Record templates
- [ ] Use automatic mechanisms for gesture completion on multiple stroke detection (idle timeout, or stroke count)