diff GeoQuiz/Helpers/GameToolbar.swift @ 7:d945e52b0704

implement dynamic map
author Dennis C. M. <dennis@denniscm.com>
date Tue, 04 Oct 2022 18:54:24 +0200
parents 1946bbfde4af
children e09959b4e4a8
line wrap: on
line diff
--- a/GeoQuiz/Helpers/GameToolbar.swift	Thu Sep 29 12:00:17 2022 +0200
+++ b/GeoQuiz/Helpers/GameToolbar.swift	Tue Oct 04 18:54:24 2022 +0200
@@ -24,7 +24,7 @@
                         .padding(10)
                         .background(
                             Circle()
-                                .foregroundColor(.white)
+                                .foregroundStyle(.regularMaterial)
                         )
                 }
             }
@@ -32,40 +32,32 @@
             .frame(maxWidth: .infinity, alignment: .leading)
             
             Group {
-                Button {
-                    game.showingGameStatsView = true
-                } label: {
-                    Text("\(game.userScore)")
-                        .font(.title.bold())
-                        .foregroundColor(color)
-                        .padding()
-                        .background(
-                            Circle()
-                                .foregroundColor(.white)
-                        )
-                }
+                Text("\(game.userScore)")
+                    .font(.title.bold())
+                    .foregroundColor(color)
+                    .padding()
+                    .background(
+                        Circle()
+                            .foregroundStyle(.regularMaterial)
+                    )
             }
             .font(.title2)
             .scaleEffect(game.scoreScaleAmount)
             .frame(maxWidth: .infinity, alignment: .center)
             
             Group {
-                Button {
-                    game.showingBuyLivesView = true
-                } label: {
-                    HStack {
-                        Image(systemName: "heart.fill")
-                        Text("\(game.userLives)")
-                    }
-                    .font(.headline)
-                    .foregroundColor(color)
-                    .padding(10)
-                    .background(
-                        Capsule()
-                            .foregroundColor(.white)
-                    )
-                    .scaleEffect(game.livesScaleAmount)
+                HStack {
+                    Image(systemName: "heart.fill")
+                    Text("\(game.userLives)")
                 }
+                .font(.headline)
+                .foregroundColor(color)
+                .padding(10)
+                .background(
+                    Capsule()
+                        .foregroundStyle(.regularMaterial)
+                )
+                .scaleEffect(game.livesScaleAmount)
             }
             .font(.headline)
             .frame(maxWidth: .infinity, alignment: .trailing)