Cannot preview in this file- *app crashed

Hi, my app preview were working perfectly until now and now it wont preview it show "cannot preview in this file- app crashed". theres no code error as well in the swift ui file.
Can anyone let me know why this is happening. Thanks

Replies

Could you please provide the code in which you’re previewing from? Even if the compiler sees no issue, there could still be an error that makes the app malfunction.

Also, did you add any code that made it stop working? What was the difference from the working code versus the non-working code?