[![CI Status](http://img.shields.io/travis/Saulo Tauil/UIKevent.svg?style=flat)](https://travis-ci.org/Saulo Tauil/UIKevent)
To run the example project, clone the repo, and run pod install
from the Example directory first.
iOS 8
UIKevent is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "UIKevent"
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)");
}
Saulo Tauil
UIKevent is available under the MIT license. See the LICENSE file for more info.