Hide sponsors link in App Store versions
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
|
|
||||||
|
import Library
|
||||||
import SwiftUI
|
import SwiftUI
|
||||||
|
|
||||||
public struct SettingView: View {
|
public struct SettingView: View {
|
||||||
@@ -108,7 +109,11 @@ public struct SettingView: View {
|
|||||||
Label("Rate on the App Store", systemImage: "text.bubble.fill")
|
Label("Rate on the App Store", systemImage: "text.bubble.fill")
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
Tabs.sponsors.navigationLink
|
#if os(macOS)
|
||||||
|
if Variant.useSystemExtension {
|
||||||
|
Tabs.sponsors.navigationLink
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
Section("Debug") {
|
Section("Debug") {
|
||||||
NavigationLink {
|
NavigationLink {
|
||||||
|
|||||||
@@ -10,12 +10,7 @@ public struct SponsorsView: View {
|
|||||||
Section {
|
Section {
|
||||||
EmptyView()
|
EmptyView()
|
||||||
} footer: {
|
} footer: {
|
||||||
Text(
|
Text("**If I’ve defended your modern life, please consider sponsoring me.**")
|
||||||
"""
|
|
||||||
**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._
|
|
||||||
""")
|
|
||||||
.frame(maxWidth: .infinity, alignment: .leading)
|
.frame(maxWidth: .infinity, alignment: .leading)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user