How to observe changes in nested object

I have a viewModel, into which is passed an arbitrary number of Realm objects.
These objects look something like this:

rootObject
|__ EmbeddedObjectA
----|___propertyB
...and more similar

The viewModel holds several computed properties that are based on EmbeddedObjectA and propertyB.

The problem is that those computed properties never update because the embedded objects and its properties are not properly observed. I have tried countless things that all haven’t worked and this seems far more complex than it should be.

I know that it is actually writing the changes correctly because if I close the associated view and re-open it the values are correct since the rootObject set is reloaded.

My questions:

  • What should I be passing the set of rootObjects into the viewModel as?
    – I’ve tried Set< rootObject>, @ObservedRealmObject RealmSwift.List<rootObject>, and probably several I’m forgetting.
  • How do I actually observe propertyB?!
    – I’ve tried EmbeddedPropertyA.observe, objectWillChange.send() in countless configurations.
  • Why does this seem like a recurring thing in Mongo/Realm? I’ve seen this question countless times across the internet (none with a working solution) so why is it such a pervasive thing?!

Thank you in advance for your help!

Update: After trying some things it seems that the issue isn’t that the nested objects aren’t being observed, but that the entire Realm objects are no longer observed in this viewModel. The observed list is held in, let’s call it, parentView. Then a list, of arbitrary length (at least one), of those objects is passed to this viewModel.

As mentioned above, I am currently passing as @ObservedRealmObject var objects: RealmSwift.List<ObjectType> , though I have also tried sending as a Set<ObjectType> , an Array<ObjectType> , etc. but all have the same issue of not being observed.

My assumption here is that I am no longer observing the actual objects inside the realm, but maybe a deep copy or something like that? Does that sound right?