Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add UIControl rx_subscribeEnabledTo #34

Closed
ashfurrow opened this issue Jun 12, 2015 · 1 comment
Closed

Add UIControl rx_subscribeEnabledTo #34

ashfurrow opened this issue Jun 12, 2015 · 1 comment

Comments

@ashfurrow
Copy link
Collaborator

Hey!

Preparing my talk for AltConf tomorrow on FRP, and I'm using RxSwift (ssssshhhhhhh don't tell anyone – I want to focus on concepts and ideas instead of "which FRP framework" I use).

Anyway, coming from ReactiveCocoa, there are a few things I've noticed we could add. I'm making implementations for them in the sample code for now, but when I have time, I'll add tests and send a PR for them.

The first one is adding rx_subscribeEnabledTo for UIControl. Something like

emailTextField.rx_text
    >- map { $0.isEmail() }
    >- submitButton.rx_subscribeEnabledTo
    >- disposeBag.addDisposable
@kzaher
Copy link
Member

kzaher commented Jun 12, 2015

Hi Ash,

Yeah, I think there were a lot of requests for that. I think this is a good idea, so if you want to do a PR, that would be great.

I think @DTartaglia also likes this idea :)

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants