如何触发一个代码块,只要任何一组SignalProducers的改变? 换句话说,我该如何摆脱我目前的冗余代码:
property1.producer.startWithValues { (value) in
// do stuff with property1.value and property2.value
}
property2.producer.startWithValues { (value) in
// do the same stuff with property1.value and property2.value
}