Hello,
in your solution, you are removing the graph and creating it again.
I guess you only wanted to perform incremental updates just as a swiftUI view. Is this approach performant enough? (imagine a graph of 1000 entities that you remove and create at each update).
Has anybody found a solution to perform incremental updates of a reality kit graph with a proper MVVM such as a Swift UI view?
Based on another thread, what I have in mind is to perform observation of specific properties in a non swift ui view to trigger the updates. Hope it will come with WWDC 2024 :-)