how do i fix this issue?
Xcode problems
When you post such a question, please provide context.
There are tons of reasons for such an error. For instance, missing file, or inadequate file format in asset, or …
Without complete crash report, impossible to say.
You have a compiler error. No one can tell you how to correct the error until you show the compiler errors. Press Cmd-5 to show the issue navigator, which will show you the errors. Please post the errors as text instead of screenshots. Text is easier to read on these forums than text in screenshots.
Judging by the questions you are asking here, you are new to iOS development with SwiftUI. Instead of asking questions on these forums every time you get a compiler error, you would get better results by taking Hacking with Swift's free 100 Days of SwiftUI course.
https://www.hackingwithswift.com/100/swiftui
The Hacking with Swift course is geared towards people new to iOS development. Plus the site has a forum dedicated to the course where you can ask questions if you run into problems with the projects in the course. They also have a forum for SwiftUI questions. The Hacking with Swift forums are focused on new developers more than these forums, which are meant for specific issues developers are having with Apple's frameworks and tools.