Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/onurersel/uiview-gesturecallback

Category of block wrappers for UIGestureRecognizer's
https://github.com/onurersel/uiview-gesturecallback

Last synced: 16 days ago
JSON representation

Category of block wrappers for UIGestureRecognizer's

Awesome Lists containing this project

README

        

# UIView-GestureCallback

Category of block wrappers for UIGestureRecognizers

### Installation

Copy UIView-GestureCallback.h and UIView-GestureCallback.m files to your project. Or use CocoaPods

pod 'UIView-GestureCallback'

### Usage

```objc
#import "UIView+GestureCallback.h"
```

```objc
// Adding tap recognizer
[view addTapGestureRecognizer:^(UITapGestureRecognizer *recognizer) {
//...
}];

// Remove tap recognizer without storing recognizer object, or looping through .gestureRecognizers array
[view removeTapGestureRecognizer];
```

### Todo
- wrapper for custom gesture recognizers
- tests for GestureCallbackValues storage logic