Marco Arment on Nostr: If anyone else is nuts enough to use withObservationTracking(), let me save you ...
If anyone else is nuts enough to use withObservationTracking(), let me save you potentially a lot of time:
It only calls the onChange: block ONCE, BEFORE the first change. It does NOT provide continuous change notifications over time, and it works like a willSet, not a didSet.
I made a quick utility to get Combine publishers for Observable key-paths, which is easier and cleaner for me to use. Does this look right? It works… https://gist.github.com/marcoarment/88ee13df326c25c1f0a68c09e086f03f
It only calls the onChange: block ONCE, BEFORE the first change. It does NOT provide continuous change notifications over time, and it works like a willSet, not a didSet.
I made a quick utility to get Combine publishers for Observable key-paths, which is easier and cleaner for me to use. Does this look right? It works… https://gist.github.com/marcoarment/88ee13df326c25c1f0a68c09e086f03f