Latest 0.0.5
Homepage https://github.com/zshannon/ZCSHoldProgress
License MIT
Platforms ios , requires ARC
Authors

"Your users be pressin’ long, but do they know how long they need to be pressin’?"

ZCSHoldProgress is a UILongPressGestureRecognizer subclass with some nice (customizable) visual flair.

Add to your Podfile

pod 'ZCSHoldProgress', '~> 0.0.5'

Use in your project

Setup

#import "ZCSHoldProgress.h"

ZCSHoldProgress *holdProgress = [[ZCSHoldProgress alloc] initWithTarget:self action:@selector(gestureRecogizerTarget:)];
holdProgress.minimumPressDuration = 3.0;
[self.view addGestureRecognizer:holdProgress];

Target Action

- (void)gestureRecogizerTarget:(UIGestureRecognizer *)gestureRecognizer {
    if (gestureRecognizer.state == UIGestureRecognizerStateBegan) {
        // TODO: do something interesting
    } else if (gestureRecognizer.state == UIGestureRecognizerStatePossible) {
        // TODO: knock it off with the interesting stuff
    }
}

Screenshots

Example App
Example Showing Progress
Example Showing Complete

Contributing

Send me Pull Requests here, please.

Latest podspec

{
    "name": "ZCSHoldProgress",
    "version": "0.0.5",
    "summary": "A UILongPressGestureRecognizer that displays its progress.",
    "description": "                   ZCSHoldProgress is a UILongPressGestureRecognizer subclass with some nice (customizable) visual flair. It gives your users a visual indication of their progress towards activating the gesture recognizer.n",
    "homepage": "https://github.com/zshannon/ZCSHoldProgress",
    "screenshots": [
        "https://github.com/zshannon/ZCSHoldProgress/raw/screenshots/one.png",
        "https://github.com/zshannon/ZCSHoldProgress/raw/screenshots/two.png",
        "https://github.com/zshannon/ZCSHoldProgress/raw/screenshots/three.png"
    ],
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Zane Shannon": "[email protected]"
    },
    "social_media_url": "http://twitter.com/zaneshannon",
    "platforms": {
        "ios": null
    },
    "source": {
        "git": "https://github.com/zshannon/ZCSHoldProgress.git",
        "tag": "0.0.5"
    },
    "source_files": "ZCSHoldProgress.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This