Group Group Group Group Group Group Group Group Group

Ch. 10 @AppStorage use/style question

My first exposure to @AppStorage, so certainly willing to get schooled on this, but…

It strikes me as very poor form to declare and initialize the same variable multiple times in the same app. Kuchi has the following line in four different files.

@AppStorage("numberOfQuestions") var numberOfQuestions = 6

Seems awfully fragile. Why not declare it once (in ChallengesViewModel, for example), and pass that single instance to everyone else who needs it? Is that not possible?