Skip to content

UIGestureRecognizer subclass for detecting tap patterns

License

Notifications You must be signed in to change notification settings

ejensen/YLTapPatternRecognizer

Repository files navigation

YLTapPatternRecognizer

Build Status CocoaPods

UIGestureRecognizer subclass that matches taps to a particular pattern. Use it to unlock easter eggs or beta features. But only for those who know the secret code.

Installation

Simply add the files in the TapPatternRecognizer folder to your project or add YLTapPatternRecognizer to your Podfile.

Configuration

The default pattern is shave and a haircut.

You can use the predefined within YLTapPatterns or create your own custom pattern.

See the header for full documentation.

Demo

Build and run the SecretTapDemo project in Xcode to see YLTapPatternRecognizer in action.

demo recording

Credits

Originally inspired by the Secret Knock Detecting Door Lock.

License

YLTapPatternRecognizer is available under the MIT license. See the LICENSE file for more info.

About

UIGestureRecognizer subclass for detecting tap patterns

Topics

Resources

License

Stars

Watchers

Forks