Mercurial > public > geoquiz
comparison GeoQuiz/GuessTheFlagView.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 | f31a61462e7a |
comparison
equal
deleted
inserted
replaced
3:4dbe0cd9dadc | 4:de54f05adb78 |
---|---|
16 LinearGradient(gradient: .main, startPoint: .top, endPoint: .bottom) | 16 LinearGradient(gradient: .main, startPoint: .top, endPoint: .bottom) |
17 .ignoresSafeArea() | 17 .ignoresSafeArea() |
18 | 18 |
19 GeometryReader { geo in | 19 GeometryReader { geo in |
20 VStack(spacing: 20) { | 20 VStack(spacing: 20) { |
21 GameToolbar(gameName: $gameName, game: game) | 21 GameToolbar(game: game) |
22 | 22 |
23 HStack { | 23 HStack { |
24 VStack(alignment: .leading, spacing: 10) { | 24 VStack(alignment: .leading, spacing: 10) { |
25 Text("Question \(game.questionCounter) of \(game.data.count)") | 25 Text("Question \(game.questionCounter) of \(game.data.count)") |
26 .font(.title3) | 26 .font(.title3) |
53 } | 53 } |
54 } | 54 } |
55 .navigationBarHidden(true) | 55 .navigationBarHidden(true) |
56 .modifier(GameAlertsModifier(game: game, gameName: $gameName)) | 56 .modifier(GameAlertsModifier(game: game, gameName: $gameName)) |
57 .sheet(isPresented: $game.showingBuyLivesView) { | 57 .sheet(isPresented: $game.showingBuyLivesView) { |
58 BuyLivesModal() | 58 BuyLivesModalView() |
59 } | |
60 | |
61 .sheet(isPresented: $game.showingGameStatsView) { | |
62 GameStatsModalView(game: game) | |
59 } | 63 } |
60 } | 64 } |
61 } | 65 } |
62 | 66 |
63 struct GuessTheFlagView_Previews: PreviewProvider { | 67 struct GuessTheFlagView_Previews: PreviewProvider { |