Hide sponsors link in App Store versions

This commit is contained in:
世界
2024-02-18 19:10:22 +08:00
parent be86607f31
commit e9d55c6125
2 changed files with 7 additions and 7 deletions
@@ -1,4 +1,5 @@
import Library
import SwiftUI
public struct SettingView: View {
@@ -108,7 +109,11 @@ public struct SettingView: View {
Label("Rate on the App Store", systemImage: "text.bubble.fill")
}
#endif
Tabs.sponsors.navigationLink
#if os(macOS)
if Variant.useSystemExtension {
Tabs.sponsors.navigationLink
}
#endif
}
Section("Debug") {
NavigationLink {
@@ -10,12 +10,7 @@ public struct SponsorsView: View {
Section {
EmptyView()
} footer: {
Text(
"""
**If Ive defended your modern life, please consider sponsoring me.**
_sing-box is completely free and open source, sponsorships to the developer are voluntary and you will not receive any digital content or services._
""")
Text("**If Ive defended your modern life, please consider sponsoring me.**")
.frame(maxWidth: .infinity, alignment: .leading)
}