From 0bb4bae604ed6d60120dbb23411822c081a228ab Mon Sep 17 00:00:00 2001 From: "Evgeny @ SimpleX Chat" <259188159+evgeny-simplex@users.noreply.github.com> Date: Thu, 13 Aug 2026 09:57:19 +0000 Subject: [PATCH] add to settings --- apps/ios/Shared/Views/Onboarding/WhatsNewView.swift | 4 ++-- apps/ios/Shared/Views/UserSettings/SettingsView.swift | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/apps/ios/Shared/Views/Onboarding/WhatsNewView.swift b/apps/ios/Shared/Views/Onboarding/WhatsNewView.swift index 6bad6f8200..fa2ae5da5f 100644 --- a/apps/ios/Shared/Views/Onboarding/WhatsNewView.swift +++ b/apps/ios/Shared/Views/Onboarding/WhatsNewView.swift @@ -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 diff --git a/apps/ios/Shared/Views/UserSettings/SettingsView.swift b/apps/ios/Shared/Views/UserSettings/SettingsView.swift index 4bd5f7db1b..6f54fe11e0 100644 --- a/apps/ios/Shared/Views/UserSettings/SettingsView.swift +++ b/apps/ios/Shared/Views/UserSettings/SettingsView.swift @@ -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")!) }