Quit unexpectedly when enable code preview

Hey there,

I'm having some trouble with my code preview. This project is part of a SwiftUI tutorial that I’m following from a website. But whenever I try to preview my screen, I get the error modal shown in the image.

Any idea what's going on? Thanks!

It looks like an assert is failing on line 42 of Model Data.swift, based on looking at the crashing thread’s backtrace (“Thread 0 Crashed”) and then finding the frame with the lowest number, and then looking at the source information. Check out Analyzing a crash report for a full explanation of how to read a crash report.

1 Like

omg, i really don't know how to fix this crash... Nothing changes before I run it well