RealityViewContent update

I am working on a project where changes in a window are reflected in a volumetric view which includes a RealityView. I have a shared data model between the window and volumetric view, but it unclear to me how I can programmatically refresh the RealityViewContent. Initially I tried holding the RealityViewContent passed from the RealityView closure in the data model, and I also tried embedding a .sink into the closure, but because the RealityViewContent is inout, neither of those work. And changes to the window's contents do not cause the RealityView's update closure fire. Is there a way to notify the RealityViewContent to update?

Any luck figuring this out? I've been stumped for a couple of days on the exact same issue...

Did you end up figuring this out? Having a similar issue as well

I just store a reference to the just added entity and then modify that, works for me.

You can just store a reference to the entity within your ViewModel and then modify the entity within it. Quick example here: http://github.com/thilojaeggi/ResizableCube/

RealityViewContent update
 
 
Q