You don't need to restart the tutorial.
The SwiftUI previews are flaky. Try turning off the preview canvas when entering the code for the preview and turning it back on when you're done typing the code.
If you don't know how to turn off the preview canvas, read the following:
https://swiftdevjournal.github.io/intro-swiftui-guide/Previews
If you are still having problems with the canvas, you can turn off the preview canvas and run the project in the Simulator. The Simulator takes a long time to launch the first time you run the project, but after that, building and running the project isn't much slower than the preview canvas.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: