Mercurial > public > geoquiz
comparison 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 |
comparison
equal
deleted
inserted
replaced
3:4dbe0cd9dadc | 4:de54f05adb78 |
---|---|
30 .alert(game.alertTitle, isPresented: $game.showingEndGameAlert) { | 30 .alert(game.alertTitle, isPresented: $game.showingEndGameAlert) { |
31 Button("Exit", role: .cancel) { gameName = nil } | 31 Button("Exit", role: .cancel) { gameName = nil } |
32 } message: { | 32 } message: { |
33 Text(game.alertMessage) | 33 Text(game.alertMessage) |
34 } | 34 } |
35 | |
36 .alert("Are you sure?", isPresented: $game.showingExitGameAlert) { | |
37 Button("Exit", role: .destructive) { gameName = nil } | |
38 Button("Cancel", role: .cancel) { } | |
39 } message: { | |
40 Text("You'll loose the progress so far.") | |
41 } | |
35 } | 42 } |
36 } | 43 } |