add to settings

This commit is contained in:
Evgeny @ SimpleX Chat
2026-08-13 09:57:19 +00:00
parent 2362167efe
commit 0bb4bae604
2 changed files with 10 additions and 2 deletions
@@ -42,7 +42,7 @@ private struct FeatureView {
let view: () -> any View
}
private let isInUS = true // SKStorefront().countryCode == "USA"
let isInUS = true // SKStorefront().countryCode == "USA"
private let versionDescriptions: [VersionDescription] = [
VersionDescription(
@@ -805,7 +805,7 @@ fileprivate let getStakeSlides: [(image: String, text: LocalizedStringKey?)] = [
("crowdfunding_11", "Read about how we plan the make SimpleX Chat and network profitable, and about all the investment terms on Wefunder."),
]
fileprivate struct GetStakeView: View {
struct GetStakeView: View {
@Environment(\.dismiss) var dismiss: DismissAction
@EnvironmentObject var chatModel: ChatModel
@@ -438,6 +438,14 @@ struct SettingsView: View {
}
Section(header: Text("Support the project").foregroundColor(theme.colors.secondary)) {
if isInUS {
NavigationLink {
GetStakeView()
.navigationBarTitle("", displayMode: .inline)
} label: {
settingsRow("dollarsign.circle", color: theme.colors.secondary) { Text("Crowdfunding on Wefunder") }
}
}
settingsRow("keyboard", color: theme.colors.secondary) {
ExternalLink("Contribute", destination: URL(string: "https://github.com/simplex-chat/simplex-chat#contribute")!)
}