I'm crying too. I had added a new (...) entity in my Core Data model that I named: "NewPerson" that had relations to other entities. Everything worked fine until I tried to delete occurrences of NewPerson. Then my app crashed every time. Renaming my entity solved the problem. Many thanks!
Post
Replies
Boosts
Views
Activity
Probably I'm missing something but I don't see what exactly the fix is? I mean, to me it seems you replaced your @Published isPresented property for a @State property in the parent view and a dismiss() in the Sheet view. What's the use of the .onChange() in the ContentView, or the viewModel for that matter?
I didn't get an answer from my friends in Cupertino on my bugreport but when I now try the exact same thing in Xcode 13.3, then everything works as expected. They actually solved this problem 👏🏽! I think.
@Claude31: How do I close this thread?
Thanks. I'll follow your advice and file a bug report.
I'm using CoreData in my app and the terminal command solved my preview problem. Thx.