We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I feel like it would make code more readable if we return Bindings instead of tuple?
Bindings
func bind<State, Event>(_ bindings: @escaping (Observable<State>) -> (Bindings) -> (Observable<State>) -> Observable<Event>
func makeBindings(for state: Observable<State>) -> Bindings<Event> { let subscriptions = [ state.map(String.init).bind(to: label.rx.text) ] let events = [ plus.rx.tap.map { Event.increment }, minus.rx.tap.map { Event.decrement } ] return Bindings(subscriptions: subscriptions, events: events) } }
Thoughts ?
The text was updated successfully, but these errors were encountered:
Hi @sergdort ,
yeah, that would be great. Feel free to open a PR.
Sorry, something went wrong.
No branches or pull requests
I feel like it would make code more readable if we return
Bindings
instead of tuple?Thoughts ?
The text was updated successfully, but these errors were encountered: