【发布时间】:2017-05-24 18:14:24
【问题描述】:
绑定运算符 (BindingSource 参数,Signal 和 SignalProducer 都符合协议
我希望绑定到生产者的 UI 元素在生产者以某种方式启动之前不会“接收事件”,但情况似乎并非如此
即
let text = MutableProperty("abc")
myLabel1.reactive.text <~ text.signal
myLabel2.reactive.text <~ text.producer
text.value = "def"
使两个标签都更新。
这是预期的行为还是我误解了什么?
【问题讨论】:
标签: reactive-cocoa reactive-swift reactive-cocoa-5