diff GeoQuiz/ContentView.swift @ 6:1946bbfde4af

reformat data structures
author Dennis C. M. <dennis@denniscm.com>
date Thu, 29 Sep 2022 12:00:17 +0200
parents f31a61462e7a
children d945e52b0704
line wrap: on
line diff
--- a/GeoQuiz/ContentView.swift	Sat Sep 24 12:02:09 2022 +0100
+++ b/GeoQuiz/ContentView.swift	Thu Sep 29 12:00:17 2022 +0200
@@ -38,9 +38,9 @@
                             level: "Level 2", symbol: "building.2.fill", name: "Guess the capital"
                         )
                     }
-                    
+
                     NavigationLink(
-                        destination: Text("Guess the country"),
+                        destination: GuessTheCountryView(gameName: $gameName),
                         tag: GameName.guessTheCountry,
                         selection: $gameName
                     ) {
@@ -49,17 +49,17 @@
                             level: "Level 3", symbol: "globe.americas.fill", name: "Guess the country"
                         )
                     }
-                    
-                    NavigationLink(
-                        destination: Text("Guess the population"),
-                        tag: GameName.guessThePopulation,
-                        selection: $gameName
-                    ) {
-                        GameButton(
-                            gradient: .quaternary,
-                            level: "Level 4", symbol: "person.3.fill", name: "Guess the population"
-                        )
-                    }
+//
+//                    NavigationLink(
+//                        destination: Text("Guess the population"),
+//                        tag: GameName.guessThePopulation,
+//                        selection: $gameName
+//                    ) {
+//                        GameButton(
+//                            gradient: .quaternary,
+//                            level: "Level 4", symbol: "person.3.fill", name: "Guess the population"
+//                        )
+//                    }
                 }
                 .padding()
             }
@@ -89,6 +89,7 @@
                 SettingsModalView()
             }
         }
+        .navigationViewStyle(StackNavigationViewStyle())
     }
 }