Mercurial > public > geoquiz
comparison GeoQuiz/BuyLivesModal.swift @ 0:413e2d21333e
first commit
author | Dennis C. M. <dennis@denniscm.com> |
---|---|
date | Tue, 20 Sep 2022 08:13:26 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:413e2d21333e |
---|---|
1 // | |
2 // BuyLivesModal.swift | |
3 // GeoQuiz | |
4 // | |
5 // Created by Dennis Concepción Martín on 6/9/22. | |
6 // | |
7 | |
8 import SwiftUI | |
9 | |
10 struct BuyLivesModal: 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 BuyLivesView_Previews: PreviewProvider { | |
65 static var previews: some View { | |
66 BuyLivesModal() | |
67 } | |
68 } |