Latest 1.1.0
License MIT
Platforms ios 5.0, requires ARC
Frameworks UIKit

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.


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.

demo recording


Originally inspired by the Secret Knock Detecting Door Lock.


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

Latest podspec

    "name": "YLTapPatternRecognizer",
    "version": "1.1.0",
    "summary": "UIGestureRecognizer subclass for detecting tap patterns.",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "Eric Jensen": "[email protected]"
    "source": {
        "git": "",
        "tag": "1.1.0"
    "platforms": {
        "ios": "5.0"
    "source_files": "TapPatternRecognizer/YLTapPatternRecognizer.{h,m}",
    "frameworks": "UIKit",
    "requires_arc": true

Pin It on Pinterest

Share This