Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ReactiveCocoa snippet
textField1.rac_textSignal().toSignalProducer()
.combineLatestWith(textField2.rac_textSignal().toSignalProducer())
.map { ($0.0 as! String, $0.1 as! String) }
.startWithNext { (first, second) in
self.saveButton.enabled = (first.characters.count + second.characters.count) > 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.