From 3a2b22106b07141b2c8d790c045d6532599746c6 Mon Sep 17 00:00:00 2001 From: se2crid <151872490+se2crid@users.noreply.github.com> Date: Fri, 28 Mar 2025 15:55:31 +0100 Subject: [PATCH] Update SettingsView.swift --- StikJIT/Views/SettingsView.swift | 58 +++++++++++++++++++++++--------- 1 file changed, 42 insertions(+), 16 deletions(-) diff --git a/StikJIT/Views/SettingsView.swift b/StikJIT/Views/SettingsView.swift index 3be002c..3245ce2 100644 --- a/StikJIT/Views/SettingsView.swift +++ b/StikJIT/Views/SettingsView.swift @@ -148,22 +148,48 @@ struct SettingsView: View { Text("Collaborators:") .foregroundColor(.secondaryText) HStack { - Link("Stossy11", destination: URL(string: "https://github.com/Stossy11")!) - .frame(maxWidth: .infinity) - .contentShape(Rectangle()) - .foregroundColor(.primaryText) - Link("Neo", destination: URL(string: "https://github.com/neoarz")!) - .frame(maxWidth: .infinity) - .contentShape(Rectangle()) - .foregroundColor(.primaryText) - Link("Se2crid", destination: URL(string: "https://github.com/Se2crid")!) - .frame(maxWidth: .infinity) - .contentShape(Rectangle()) - .foregroundColor(.primaryText) - Link("HugeBlack", destination: URL(string: "https://github.com/HugeBlack")!) - .frame(maxWidth: .infinity) - .contentShape(Rectangle()) - .foregroundColor(.primaryText) + Button(action: { + if let url = URL(string: "https://github.com/Stossy11") { + UIApplication.shared.open(url) + } + }) { + Text("Stossy11") + .frame(maxWidth: .infinity) + .contentShape(Rectangle()) + .foregroundColor(.primaryText) + } + + Button(action: { + if let url = URL(string: "https://github.com/neoarz") { + UIApplication.shared.open(url) + } + }) { + Text("Neo") + .frame(maxWidth: .infinity) + .contentShape(Rectangle()) + .foregroundColor(.primaryText) + } + + Button(action: { + if let url = URL(string: "https://github.com/Se2crid") { + UIApplication.shared.open(url) + } + }) { + Text("Se2crid") + .frame(maxWidth: .infinity) + .contentShape(Rectangle()) + .foregroundColor(.primaryText) + } + + Button(action: { + if let url = URL(string: "https://github.com/HugeBlack") { + UIApplication.shared.open(url) + } + }) { + Text("HugeBlack") + .frame(maxWidth: .infinity) + .contentShape(Rectangle()) + .foregroundColor(.primaryText) } } .listRowBackground(Color.cardBackground)