Skip to content

Instantly share code, notes, and snippets.

@ashfurrow
Last active December 17, 2015 06:59
Show Gist options
  • Save ashfurrow/5569937 to your computer and use it in GitHub Desktop.
Save ashfurrow/5569937 to your computer and use it in GitHub Desktop.
Filtering a text field's signal
[[self.textField.rac_textSignal filter:^BOOL(NSString *value) {
return [value length] >= 3;
}] subscribeNext:^(NSString *value) {
NSLog(@"Text field has been updated: %@", value);
}];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment