The error messages describe what the problems are. You have another CardView struct declared somewhere else in the project. Same for CardView_Previews. For the labelStyle modifier, you are using ".trailingIcon" which doesn't exist.
Unfortunately, Apple changes its platforms, products, languages, and APIs very frequently. When I do a search, I see other people who used ".trailingIcon" from this tutorial. And this was only a few months ago. The tutorial specifies iOS 13. So perhaps it was different back then. Or perhaps another part of the tutorial created that style. Unfortunately, this is pretty typical for Apple tutorials and sample code. It's always a moving target.
Just comment out that modifier and keep going. Of course you'll need to track down the other CardView structs and get rid of them too.