Skip to content

wajeeh-hassan/UIView-TapListnerCallback

Repository files navigation

UIView-TapListnerCallback

CI Status Version License Platform

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...).
// Just call TapLisner method from any view
  
        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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published