Mercurial > public > geoquiz
diff GeoQuiz/Helpers/GameAlertsModifier.swift @ 4:de54f05adb78
add prototype game stats
author | Dennis C. M. <dennis@denniscm.com> |
---|---|
date | Thu, 22 Sep 2022 11:38:42 +0200 |
parents | 4dbe0cd9dadc |
children | d945e52b0704 |
line wrap: on
line diff
--- a/GeoQuiz/Helpers/GameAlertsModifier.swift Thu Sep 22 10:42:39 2022 +0200 +++ b/GeoQuiz/Helpers/GameAlertsModifier.swift Thu Sep 22 11:38:42 2022 +0200 @@ -32,5 +32,12 @@ } message: { Text(game.alertMessage) } + + .alert("Are you sure?", isPresented: $game.showingExitGameAlert) { + Button("Exit", role: .destructive) { gameName = nil } + Button("Cancel", role: .cancel) { } + } message: { + Text("You'll loose the progress so far.") + } } }