Skip to content

Latest commit

 

History

History
43 lines (27 loc) · 1.32 KB

readme.md

File metadata and controls

43 lines (27 loc) · 1.32 KB

Dollar Recognizers

Build Status License

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

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

# Add this to your Podfile
pod 'DollarGestureRecognizer', :git => 'https://github.com/DanielCardonaRojas/DollarGestureRecognizer', :branch => 'develop',  :tag => 'v1.0.1'

Dollar family algorithms

  • $1 recognizer with protractor optimization
  • $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)