update about page

This commit is contained in:
TrueZhuanjia committed 2025-07-22 00:47:00 +08:00
1 parent 282b3d6545
commit 5759c122ed
3 files changed
+34 -3

No files matched your search

+4 -2
View File
@@ -56,7 +56,7 @@ public struct AboutView: View {
}
// 链接按钮
if #available(iOS 14.0, *) {
Link(SwiftLocalizationHelper.localizedString(forKey: "Join us"), destination: URL(string: "https://example.com")!)
Link(SwiftLocalizationHelper.localizedString(forKey: "Join us"), destination: URL(string: SwiftLocalizationHelper.localizedString(forKey: "supportLink"))!)
.padding(.top, 10)
Spacer()
// OK 按钮
@@ -73,7 +73,7 @@ public struct AboutView: View {
HStack(spacing: 20) {
Button(SwiftLocalizationHelper.localizedString(forKey: "Join us")) {
// 打开链接
if let url = URL(string: "https://example.com") {
if let url = URL(string: SwiftLocalizationHelper.localizedString(forKey: "supportLink")) {
UIApplication.shared.open(url)
}
}
@@ -81,6 +81,7 @@ public struct AboutView: View {
.background(Color.blue)
.foregroundColor(.white)
.cornerRadius(12)
.frame(height: 33)
.frame(minWidth: 100)
Button("OK") {
@@ -90,6 +91,7 @@ public struct AboutView: View {
.background(Color.blue)
.foregroundColor(.white)
.cornerRadius(12)
.frame(height: 33)
.frame(minWidth: 100)
}
.padding(.top, 10)