There seems to be an error in challenge 8 of the Foundation Swift UI course
It says we should build a class where the topic of the lesson was a struct. When I use struct as a keyword, XCode will complain when I assign fuelLevel a new value like this is the method liftOff:
fuelLevel-=30 —> Cannot assign to property: ‘self’ is immutable
When I change from struct to class it does work. But that what not in the scope of the lesson.
Please advise why setting the property does not work in a struct.