Skip to content

Custom gesture recognizers based on $1, $Q algorithms for your iOS projects.

License

Notifications You must be signed in to change notification settings

DanielCardonaRojas/DollarGestureRecognizer

Repository files navigation

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)

About

Custom gesture recognizers based on $1, $Q algorithms for your iOS projects.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages