Mercurial > public > geoquiz
view 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 |
line wrap: on
line source
// // BuyLivesModalView.swift // GeoQuiz // // Created by Dennis Concepción Martín on 6/9/22. // import SwiftUI struct BuyLivesModalView: View { @Environment(\.dismiss) var dismiss var body: some View { ScrollView { HStack { Spacer() Button { dismiss() } label: { Image(systemName: "multiply") .imageScale(.large) } } .padding([.trailing, .top]) Section { VStack(spacing: 20) { Text("Buy lifes") .font(.largeTitle) .fontWeight(.semibold) Text("Keep learning about countries.") .font(.headline) .foregroundColor(.secondary) Image("heart") .resizable() .scaledToFit() .frame(width: 180) .padding(40) .background( Color.blue.opacity(0.5) .cornerRadius(20) .shadow(radius: 20) ) .padding() VStack(spacing: 30) { } } .padding() } footer: { Text("GeoQuiz is an indie app made by just one person. I'm glad that you are considering buying lifes to keep playing GeoQuiz.") .font(.callout) .foregroundColor(.secondary) .padding() } } } } struct BuyLivesModalView_Previews: PreviewProvider { static var previews: some View { BuyLivesModalView() } }