Skip to content

Instantly share code, notes, and snippets.

@shmidt
Created September 14, 2018 19:13
Show Gist options
  • Save shmidt/01d90073dad7a264ae134decdaab671c to your computer and use it in GitHub Desktop.
Save shmidt/01d90073dad7a264ae134decdaab671c to your computer and use it in GitHub Desktop.
ReactiveKit+NSButton
#if os(macOS)
import AppKit
import ReactiveKit
import Bond
public extension ReactiveExtensions where Base: NSButton {
public var click: SafeSignal<Void> {
return controlEvent.eraseType()
}
}
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment