YLTapPatternRecognizer
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.
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.