I'm a beginner so please forgive my use of wrong terminology.
I have been working through the Apple tutorial on SwiftUI. I tried to edit the PreviewProvider in "ContentView.swift" made a mistake and tried to revert back. I have checked that the code is now as it was when it worked.
But, the code in that file is not showing the same as before – it has none of the colours which show that Xcode has parsed and checked the code. Thus, the canvas is not showing. The code looks like this:
Nonetheless, the project builds and runs without error.
How can I make Xcode parse a file and thus show the canvas ?