Latest 0.1.1
Homepage https://github.com/saulogt/UIKevent
License MIT
Platforms ios 8.0
Authors

[![CI Status](http://img.shields.io/travis/Saulo Tauil/UIKevent.svg?style=flat)](https://travis-ci.org/Saulo Tauil/UIKevent)
Version
License
Platform

Example

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

Requirements

Installation

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

pod "UIKevent"

Usage

The controls supported are

  • UIBarButtonItem
  • UIButton
  • UISegmentedControl
  • UIStepper
  • UISlider
  • UISwitch
  • UIDatePicker

It is still required to import UIKevent. I recomend doing thins only in the AppDelegate.swift

import UIKevent
barButton.onClick {_ in
    print("BarButtonItem Clicked");
};

button.onClick { (btn) in
    print("Button clicked");
}

switchControl.onChange(handler: { ctrl in
    print("UISwitch changed");

})

slider.onChange { (sld) in
    print("slider change to (sld.value)");
}

stepper.onChange { (obj) in
    print("stepper change to (obj.value)");
}

segControll.onChange { (obj) in
    print("seg change to (obj.selectedSegmentIndex)");
}

Author

Saulo Tauil

License

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

Latest podspec

{
    "name": "UIKevent",
    "version": "0.1.1",
    "summary": "UKEvent is a collection of extensions that allow you to attach a closure to most controllers.",
    "description": "UIKevent allow you to add closure to event handlers in most (in progress) iOS controllers, like UIButton, UIDatePicker, etc.",
    "homepage": "https://github.com/saulogt/UIKevent",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Saulo Tauil": "[email protected]"
    },
    "source": {
        "git": "https://github.com/saulogt/UIKevent.git",
        "tag": "0.1.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "UIKevent/Classes/**/*",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This