diff GeoQuiz/GuessTheCapitalView.swift @ 33:6d574bd1644f

refactor controllers
author Dennis C. M. <dennis@denniscm.com>
date Sat, 12 Nov 2022 11:18:30 +0100
parents 3f4b366d476d
children
line wrap: on
line diff
--- a/GeoQuiz/GuessTheCapitalView.swift	Fri Nov 11 09:05:41 2022 +0100
+++ b/GeoQuiz/GuessTheCapitalView.swift	Sat Nov 12 11:18:30 2022 +0100
@@ -65,9 +65,7 @@
                                     gameController.answer(
                                         choice: (key: countryName, value: gameController.data[countryName]!),
                                         wrongMessage: "That's the capital of \(countryName)"
-                                    ) {
-                                        gameController.selector()
-                                    }
+                                    )
                                 } label: {
                                     AnswerButton(
                                         name: gameController.data[countryName]!.capital,