Skip to content

Instantly share code, notes, and snippets.

@vasarhelyia
Created August 30, 2015 09:36
Show Gist options
  • Save vasarhelyia/48034d176616a82d2fc5 to your computer and use it in GitHub Desktop.
Save vasarhelyia/48034d176616a82d2fc5 to your computer and use it in GitHub Desktop.
toSignalProducer
tempStepper.rac_signalForControlEvents(.ValueChanged).toSignalProducer()
|> map { aStepper in
let stepper = aStepper as! UIStepper
return Int(stepper.value)
}
|> catch { _ in SignalProducer<Int, NoError>.empty }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment