Mercurial > public > geoquiz
diff GeoQuiz/GuessTheCountryView.swift @ 8:e09959b4e4a8
fix bugs
author | Dennis C. M. <dennis@denniscm.com> |
---|---|
date | Thu, 06 Oct 2022 11:14:34 +0200 |
parents | d945e52b0704 |
children | a793f33f05fb |
line wrap: on
line diff
--- a/GeoQuiz/GuessTheCountryView.swift Tue Oct 04 18:54:24 2022 +0200 +++ b/GeoQuiz/GuessTheCountryView.swift Thu Oct 06 11:14:34 2022 +0200 @@ -21,7 +21,7 @@ Spacer() - CityMap(game: game) + CityMap(game: game, geo: geo) Spacer() @@ -43,7 +43,9 @@ VStack { ForEach(Array(game.userChoices.keys), id: \.self) { cityName in Button { - game.answer((key: cityName, value: game.data[cityName]!)) + game.answer((key: cityName, value: game.data[cityName]!)) { + game.selector() + } } label: { AnswerButton( optionName: game.data[cityName]!.country,