I'm trying to implement something similar to
@Published, only that it will also trigger
objectWillChange.send() if the published value is itself also an
ObservableObject. In order to do so, I need to dynamically access the published value's
.objectWillChange in order to subscribe to it, and re-emit its events upstream.
ObservableObject is a PAT, a naïve casting won't do, and since the default implementation of
.objectWillChange is implemented in a protocol extension, using
Mirror to search for a publisher doesn't seem to work wither.
Can it be done?