diff Simoleon/Subscription.swift @ 30:f76d0e26c178

Add localisation
author Dennis Concepción Martín <dennisconcepcionmartin@gmail.com>
date Fri, 23 Jul 2021 13:19:28 +0100
parents c52966834f83
children
line wrap: on
line diff
--- a/Simoleon/Subscription.swift	Thu Jul 22 22:30:54 2021 +0100
+++ b/Simoleon/Subscription.swift	Fri Jul 23 13:19:28 2021 +0100
@@ -34,33 +34,58 @@
                     
                     Divider()
                     
-                    SubscriptionFeature(
-                        symbol: "star.circle.fill",
-                        title: "Favourite currencies",
-                        text: "Save your favourite currencies to access them quickly.",
-                        colour: Color(.systemYellow)
-                    )
+                    HStack(alignment:.top) {
+                        Image(systemName: "star.circle.fill")
+                            .foregroundColor(Color(.systemYellow))
+                            .font(.title)
+                        
+                        VStack(alignment: .leading) {
+                            Text("Favourite currencies", comment: "Subscription feature title")
+                                .font(.headline)
+                            
+                            Text("Save your favourite currencies to access them quickly.", comment: "Subscription feature description")
+                        }
+                    }
                     
-                    SubscriptionFeature(
-                        symbol: "flag.circle.fill",
-                        title: "Over 170 currencies",
-                        text: "Have access to almost every currency of the world.",
-                        colour: Color(.systemRed)
-                    )
+                    HStack(alignment:.top) {
+                        Image(systemName: "flag.circle.fill")
+                            .foregroundColor(Color(.systemRed))
+                            .font(.title)
+                        
+                        VStack(alignment: .leading) {
+                            Text("Over 170 currencies", comment: "Subscription feature title")
+                                .font(.headline)
+                            
+                            Text("Have access to almost every currency of the world.", comment: "Subscription feature description")
+                        }
+                    }
                     
-                    SubscriptionFeature(
-                        symbol: "icloud.circle.fill",
-                        title: "Simoleon on all your devices",
-                        text: "Your settings and favourite currencies in all your devices.",
-                        colour: Color(.systemBlue)
-                    )
+                    HStack(alignment:.top) {
+                        Image(systemName: "icloud.circle.fill")
+                            .foregroundColor(Color(.systemBlue))
+                            .font(.title)
+                        
+                        VStack(alignment: .leading) {
+                            Text("Simoleon on all your devices", comment: "Subscription feature title")
+                                .font(.headline)
+                            
+                            Text("Your settings and favourite currencies in all your devices.", comment: "Subscription feature description")
+                        }
+                    }
                     
-                    SubscriptionFeature(
-                        symbol: "bitcoinsign.circle.fill",
-                        title: "Cryptos and commodities",
-                        text: "Convert your currency between cryptos, gold, and silver.",
-                        colour: Color(.systemOrange)
-                    )
+                    HStack(alignment:.top) {
+                        Image(systemName: "bitcoinsign.circle.fill")
+                            .foregroundColor(Color(.systemOrange))
+                            .font(.title)
+                        
+                        VStack(alignment: .leading) {
+                            Text("Cryptos and commodities", comment: "Subscription feature title")
+                                .font(.headline)
+                            
+                            Text("Convert your currency between cryptos, gold, and silver.", comment: "Subscription feature description")
+                        }
+                    }
+                    
                     Spacer()
                     SubscribeButton(showingSubscriptionPaywall: $showingSubscriptionPaywall)
                     HStack {