comparison GeoQuiz/BuyLivesModalView.swift @ 4:de54f05adb78

add prototype game stats
author Dennis C. M. <dennis@denniscm.com>
date Thu, 22 Sep 2022 11:38:42 +0200
parents GeoQuiz/BuyLivesModal.swift@413e2d21333e
children
comparison
equal deleted inserted replaced
3:4dbe0cd9dadc 4:de54f05adb78
1 //
2 // BuyLivesModalView.swift
3 // GeoQuiz
4 //
5 // Created by Dennis Concepción Martín on 6/9/22.
6 //
7
8 import SwiftUI
9
10 struct BuyLivesModalView: View {
11 @Environment(\.dismiss) var dismiss
12
13 var body: some View {
14 ScrollView {
15 HStack {
16 Spacer()
17 Button {
18 dismiss()
19 } label: {
20 Image(systemName: "multiply")
21 .imageScale(.large)
22
23 }
24 }
25 .padding([.trailing, .top])
26
27 Section {
28 VStack(spacing: 20) {
29 Text("Buy lifes")
30 .font(.largeTitle)
31 .fontWeight(.semibold)
32
33 Text("Keep learning about countries.")
34 .font(.headline)
35 .foregroundColor(.secondary)
36
37 Image("heart")
38 .resizable()
39 .scaledToFit()
40 .frame(width: 180)
41 .padding(40)
42 .background(
43 Color.blue.opacity(0.5)
44 .cornerRadius(20)
45 .shadow(radius: 20)
46 )
47 .padding()
48
49 VStack(spacing: 30) {
50
51 }
52 }
53 .padding()
54 } footer: {
55 Text("GeoQuiz is an indie app made by just one person. I'm glad that you are considering buying lifes to keep playing GeoQuiz.")
56 .font(.callout)
57 .foregroundColor(.secondary)
58 .padding()
59 }
60 }
61 }
62 }
63
64 struct BuyLivesModalView_Previews: PreviewProvider {
65 static var previews: some View {
66 BuyLivesModalView()
67 }
68 }