diff GeoQuiz/Helpers/SettingsRow.swift @ 30:eb23effeede7

add DatasetView
author Dennis C. M. <dennis@denniscm.com>
date Thu, 10 Nov 2022 11:51:52 +0100
parents 3f4b366d476d
children
line wrap: on
line diff
--- a/GeoQuiz/Helpers/SettingsRow.swift	Thu Nov 10 10:27:28 2022 +0100
+++ b/GeoQuiz/Helpers/SettingsRow.swift	Thu Nov 10 11:51:52 2022 +0100
@@ -11,25 +11,22 @@
     var color: Color
     var symbol: String
     var text: String
-    var url: URL
     
-    @Environment(\.openURL) var openURL
     
     var body: some View {
-        Link(destination: url) {
-            HStack(alignment: .center, spacing: 20) {
-                RoundedRectangle(cornerRadius: 5)
-                    .frame(width: 30, height: 30)
-                    .foregroundColor(color)
-                    .overlay(
-                        Image(systemName: symbol)
-                            .foregroundColor(.white)
-                    )
-                
-                Text(text)
-                    .foregroundColor(.primary)
-            }
+        HStack(alignment: .center, spacing: 20) {
+            RoundedRectangle(cornerRadius: 5)
+                .frame(width: 30, height: 30)
+                .foregroundColor(color)
+                .overlay(
+                    Image(systemName: symbol)
+                        .foregroundColor(.white)
+                )
+            
+            Text(text)
+                .foregroundColor(.primary)
         }
+        
     }
 }
 
@@ -38,8 +35,7 @@
         SettingsRow(
             color: .mayaBlue,
             symbol: "info",
-            text: "About",
-            url: URL(string: "https://dennistech.io")!
+            text: "About"
         )
     }
 }