Codex preview keeps crashing

I've coded an application inside Xcode using SwiftUI but all of a sudden it's stopped previewing and crashing everytime I resume the preview. I'll attach images of the coding.

Friendly hint:
It's very hard to make any sense of code screenshots.
Better to put your code into a code block (using "Paste and Match Style"), to make it more readable.
Then people may be able to help you.

Codex preview keeps crashing
 
 
Q