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.
Simply add the files in the TapPatternRecognizer
folder to your project or add YLTapPatternRecognizer
to your Podfile.
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.
Build and run the SecretTapDemo
project in Xcode to see YLTapPatternRecognizer
in action.
Originally inspired by the Secret Knock Detecting Door Lock.
YLTapPatternRecognizer is available under the MIT license. See the LICENSE file for more info.