This library allows you to make any UIView tap-able like a UIButton

UIView-TapListnerCallback




Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

UIView-TapListnerCallback is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'UIView-TapListnerCallback'

Usage

import UIView_TapListnerCallback

Make any UIView Actionable

// A simple and easy method to add gesturerecognizer to any view (UIView,UIImageView,UILable...)  
  
        mLable.TapLisner{
            print("lable clicked")
        }
        
        mImageView.TapLisner{
            print("imageView clicked")
        }
        
        mView.TapLisner{
            print("view clicked")
        }
        
        mButton.TapLisner{
            print("Button clicked")
        }
  

Author

wajeehulhassan, wajeeh661@gmail.com

License

UIView-TapListnerCallback is available under the MIT license. See the LICENSE file for more info.

GitHub

View Github