SWIFT struggling with value assignment to optional class variable [duplicate]
问题 This question already has answers here : how to unwrap swift optionals within a struct (1 answer) What does “Fatal error: Unexpectedly found nil while unwrapping an Optional value” mean? (11 answers) Closed 8 months ago . as an old C programmer I am trying to get into Swift. I have already overcome many hurdles but for the following I am out of ideas. I am building a little home schooling app and want to store/retrieve the high scores to/from a JSON file. import Foundation struct HighScores: