This morning I wanted to continue working on my project, but XCode suddenly showed me a lot of errors. They were absolutely silly errors, like Image doesn't have .resizable modifier e.t.c. Then I started a new project to make sure my project is OK, and yes, XCode was full of errors even in its starting project. I attached the screenshot of the phenomenon.
What I tried so far:
- Clean build folder
- Quit and restart XCode
- I used DevCleaner
- Restart machine
- Uninstall and reinstall XCode
to no avail.
Do you have any ides? Thanks.
I figured it out. To be honest this ContentView was the original XCode generated view, but what I did not take into account that I created and added a new file with some model structs in it. And it the model there was pproperty which was named Image (I usually use app.quicktype.io to generate structs from JSON). This Image struct was in conflict with the SwiftUI original Image struct. And XCode got just confused rather than warning me about the conflict. Thank you for thinking about my problem!