Avatar
ObservableObjectobjectWillChange ってなんで did じゃなくて will なんだろうと思って調べてたら、中の人によるこんなツイートを見つけました。 https://twitter.com/luka_bernardi/status/1151633281982406656
@twostraws I do agree it might not map directly to the typical completion block mental model, but you can think of it as the begin of an update transaction. We made the change because it allows us to do a better job in coalescing updates; especially in the presence of animations.
3:50 AM
このスレッド見てたらリンクされてた。 https://forums.swift.org/t/combine-observableobject-in-uikit/28433
I began messing with combine in one of my personal projects and I am trying to use combine to allow my controllers and views to subscribe to different values in my app state. I created an app state that has @Published properties, and that’s great, I can subscribe to changes on those properties, but in the case of a controller wanting to subscri...