Latest 0.0.1
Homepage https://github.com/zhigang1992/on
License MIT
Platforms ios 8.0
Authors

on

Swift implementation on jQuery like event API

Ever get tired of writting add target action selector???

try this.

button.on(.TouchUpInside) { (button, event) in
  print("This is much cooler than adding a target action")
}

textField.on(.EditingChanged) { _ in
  print("Works on all UIControls")
}

Latest podspec

{
    "name": "On",
    "version": "0.0.1",
    "summary": "Swift implementation on jQuery like event API",
    "description": "# onnSwift implementation on jQuery like event APInnEver get tired of writting add target action selector???nntry this.nn```swiftnbutton.on(.TouchUpInside) { (button, event) inn  print("This is much cooler than adding a target action")n}nntextField.on(.EditingChanged) { _ inn  print("Works on all UIControls")n}n```",
    "homepage": "https://github.com/zhigang1992/on",
    "license": "MIT",
    "authors": {
        "Zhigang Fang": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/zhigang1992/on.git",
        "commit": "32793d2eef8a1568c744b7cdc1b9bf2eee18cd87"
    },
    "source_files": "Source/**/*.swift"
}

Pin It on Pinterest

Share This