How do I debug SwiftUI AttributeGraph cycle warnings?
The log is generated by (from private AttributeGraph.framework)
AG::Graph::print_cycle(unsigned int) const ()
so you can set symbolic breakpoint for print_cycle
and, well, how much it could be helpful depends on your scenario, but definitely you'll get error generated stack in Xcode.
For me this issue was caused by me disabling a text field while the user was still editing it.
To fix this, you must first resign the text field as the first responder (thus stopping editing), and then disable the text field. I explain this more in this Stack Overflow answer.
For me, this issue was caused by trying to focus a TextField
right before changing to the tab of a TabView containing the TextField
.
It was fixed by simply focusing the TextField
after changing the TabView
tab.
This seems similar to what @wristbands was experiencing.