ActionClosurable
ActionClosurable copied to clipboard
Extensions which helps to convert objc-style target/action to swifty closures
self?.button?.tag += 1 self?.button?.backgroundColor = (self?.button?.tag ?? 0) % 2 == 0 ? UIColor.red:UIColor.green $0.tag += 1 $0.backgroundColor = $0.tag%2 == 0 ? UIColor.red : UIColor.green
 the code in Module `ActionClosurable` is different from the code in ActionClosurable-Demo
onTap should live on separated namespace to avoid potential conflict with other library. e.g. `button.rx.event`