-
-
Save joshaber/f59759d1674f82837b8d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RACSignal *fieldTextColor = [executing map:^(NSNumber *x) { | |
return x.boolValue ? UIColor.lightGrayColor : UIColor.blackColor; | |
}]; | |
RAC(self.firstNameField.textColor) = fieldTextColor; | |
RAC(self.lastNameField.textColor) = fieldTextColor; | |
RAC(self.emailField.textColor) = fieldTextColor; | |
RAC(self.reEmailField.textColor) = fieldTextColor; | |
RACSignal *notProcessing = [executing map:^(NSNumber *x) { | |
return @(!x.boolValue); | |
}]; | |
RAC(self.firstNameField.enabled) = notProcessing; | |
RAC(self.lastNameField.enabled) = notProcessing; | |
RAC(self.emailField.enabled) = notProcessing; | |
RAC(self.reEmailField.enabled) = notProcessing; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment