If the project built with no errors previously, clean the build folder and try building again. Choose Product > Clean Build Folder in Xcode to clean the build folder.
If you still get a build error, show the code for Controller. What is Controller? What is the following code supposed to do?
.onAppear {
Controller()
}
When showing code, paste it as text and put it in a code block. The code block button is the fourth button from the left in the group of formatting buttons at the bottom of the post editor. You can also use Markdown syntax for a code block by putting three backticks on the line above and below the code in the block.
https://www.markdownguide.org/extended-syntax/#fenced-code-blocks
Code is easier to read in a text block than in a screenshot. Plus, people can copy and paste the text from a code block.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: