Hide sponsors link in App Store versions
This commit is contained in:
@@ -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 I’ve 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 I’ve defended your modern life, please consider sponsoring me.**")
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user