Post

Replies

Boosts

Views

Activity

Reply to AttributeGraph: cycle detected
Thanks Jim for the overview on AttributeGraph. I'm getting some weird errors trying to build and run for Instruments right now, but I'll definitely look into the SwiftUI profiler to confirm the issue.In the meantime:You pointed out the pattern of initializing a subview's @ObservedObject with an object that the parent is also subscribed to.I am indeed using that pattern in my modal view -- although it doesn't affect the logic around whether the modal is presented.Is that pattern a misuse of SwiftUI? Or is the problem more like: the framework is still rough around the edges and sometimes has trouble deciding the order in which to evaluate / draw views?Changing most of my view data to use value types might be a good idea anyway, but I'm a little confused around whether the framework is trying to force me to do this.
Dec ’19