You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi thanks for provide the simplest architecture for RxSwift with RxFeedback,
I've a small question, is it good to add a strongify self parameter like what UIBindingObserver dose.
This can avoid let label = self.label! :
//let label = self.label!//let minus = self.minus!//let plus = self.plus!Observable.system(...
feedback:
UI.bind(self){ me, state ->UI.Bindings<Event>inletsubscriptions=[
state.map(String.init).bind(to: me.label.rx.text)]letevents=[
me.plus.rx.tap.map{Event.increment },
me.minus.rx.tap.map{Event.decrement }]returnUI.Bindings(subscriptions: subscriptions, events: events)}).subscribe().disposed(by: disposeBag)
The text was updated successfully, but these errors were encountered:
beeth0ven
changed the title
Feature request UI.bind(self) { me, state in ... }
Add a parameter: UI.bind(self) { me, state in ... }
May 14, 2017
Hi thanks for provide the simplest architecture for RxSwift with RxFeedback,
I've a small question, is it good to add a strongify self parameter like what
UIBindingObserver
dose.This can avoid
let label = self.label!
:The text was updated successfully, but these errors were encountered: