Mercurial > public > geoquiz
comparison GeoQuiz/Helpers/GameAlertsModifier.swift @ 33:6d574bd1644f
refactor controllers
author | Dennis C. M. <dennis@denniscm.com> |
---|---|
date | Sat, 12 Nov 2022 11:18:30 +0100 |
parents | 425078c01194 |
children |
comparison
equal
deleted
inserted
replaced
32:c62d6f92709d | 33:6d574bd1644f |
---|---|
18 | 18 |
19 func body(content: Content) -> some View { | 19 func body(content: Content) -> some View { |
20 content | 20 content |
21 .alert(gameController.alertTitle, isPresented: $gameController.showingWrongAnswerAlert) { | 21 .alert(gameController.alertTitle, isPresented: $gameController.showingWrongAnswerAlert) { |
22 Button("Continue", role: .cancel) { | 22 Button("Continue", role: .cancel) { |
23 gameController.askQuestion { | 23 gameController.ask() |
24 gameController.selector() | |
25 } | |
26 } | 24 } |
27 } message: { | 25 } message: { |
28 Text(gameController.alertMessage) | 26 Text(gameController.alertMessage) |
29 } | 27 } |
30 | 28 |