Singleton how does it know appSettings.questionStrategyType

When you first tap on the settings icon, by default the selected option is the first row in the tableView. I am just wondering how does the code know to set the questionStrategyType in appSettings to the first value in the enum QuestionStrategyType?

I never see the computed property get called initially to set the value to the first row when setting breakpoints and debugging.

Nvm I solved it, I didn’t know for userDefault integer(forKey:) will return 0 if the key doesn’t exist.

Thanks for the update @mcneils! Glad you were able to solve the problem.