Hello everyone,
I have ben going through the course and faced something in Day 22 I could not understand.
The original code had a line:
@State private var countries = ["Estonia", "France", "Germany", "Ireland", "Italy", "Nigeria", "Poland", "Russia", "Spain", "UK", "US"].shuffled()
I tried to modify it a bit to make the names proper:
@State private var countries = ["Estonia", "France", "Germany", "Ireland", "Italy", "Nigeria", "Poland", "Russia", "Spain", "The UK", "The US"].shuffled()
Basically, changing "US" to "the US" and "UK" to "the UK". When I did that, I noticed that flag of the US and the UK stopped showing up, even though they were still in the game. Even more, the app asked about them:
It works just fine with the original array.
Did I miss anything in the videos? Why does it render the app the way it does?