Mercurial > public > simoleon
view Simoleon/SubscriptionPaywall.swift @ 53:b0bce2c8e4a9
Refactor UK spelling to US
author | Dennis Concepción Martín <dennisconcepcionmartin@gmail.com> |
---|---|
date | Tue, 27 Jul 2021 09:44:51 +0100 |
parents | 75c1a05176f6 |
children | 838099ff1e02 |
line wrap: on
line source
// // SubscriptionPaywall.swift // Simoleon // // Created by Dennis Concepción Martín on 22/07/2021. // import SwiftUI struct SubscriptionPaywall: View { @Binding var showingSubscriptionPaywall: Bool var body: some View { NavigationView { ScrollView { VStack(alignment: .leading, spacing: 20) { HStack { Spacer() VStack { Image("Subscription") .resizable() .aspectRatio(contentMode: .fit) .frame(width: 100, height: 100) .cornerRadius(25) Text("Unlock all access", comment: "Headline in Subscription paywall") .font(.title) .fontWeight(.semibold) .padding(.top) } Spacer() } Divider() SubscriptionFeature( symbol: "star.circle.fill", colour: Color(.systemYellow), title: "Favorite currencies", description: "Save your favorite currencies to access them quickly." ) SubscriptionFeature( symbol: "flag.circle.fill", colour: Color(.systemRed), title: "Over 170 currencies", description: "Have access to almost every currency of the world." ) SubscriptionFeature( symbol: "icloud.circle.fill", colour: Color(.systemBlue), title: "Simoleon on all your devices", description: "Your settings and favorite currencies in all your devices." ) SubscriptionFeature( symbol: "bitcoinsign.circle.fill", colour: Color(.systemOrange), title: "Cryptos and commodities", description: "Convert your currency between cryptos, gold, and silver." ) Spacer() SubscribeButton(showingSubscriptionPaywall: $showingSubscriptionPaywall) HStack { Spacer() VStack { RestoreButton(showingSubscriptionPaywall: $showingSubscriptionPaywall) .padding(.bottom) HStack { Link(destination: URL(string: "https://dennistech.io/privacy-policy")!) { Text("Privacy Policy", comment: "Button to go to app privacy policy") } Link(destination: URL(string: "https://dennistech.io/terms-of-use")!) { Text("Terms of Use", comment: "Button to go to app terms of use") } } } Spacer() } } .padding(.bottom) .padding(.horizontal, 40) } .toolbar { ToolbarItem(placement: .cancellationAction) { Button(action: { showingSubscriptionPaywall = false }) { Text("Cancel", comment: "Button to dismiss paywall modal sheet") } } } } } } struct SubscriptionPaywall_Previews: PreviewProvider { static var previews: some View { SubscriptionPaywall(showingSubscriptionPaywall: .constant(false)) } }