From f3ce5eed87afd5a71ee33cbec70f14e14c593e1c Mon Sep 17 00:00:00 2001 From: "Evgeny @ SimpleX Chat" <259188159+evgeny-simplex@users.noreply.github.com> Date: Wed, 12 Aug 2026 22:01:15 +0000 Subject: [PATCH] simplify --- .../Views/Onboarding/WhatsNewView.swift | 31 ++++++++----------- 1 file changed, 13 insertions(+), 18 deletions(-) diff --git a/apps/ios/Shared/Views/Onboarding/WhatsNewView.swift b/apps/ios/Shared/Views/Onboarding/WhatsNewView.swift index b65cb53a70..b6600fbfd5 100644 --- a/apps/ios/Shared/Views/Onboarding/WhatsNewView.swift +++ b/apps/ios/Shared/Views/Onboarding/WhatsNewView.swift @@ -772,6 +772,7 @@ fileprivate struct CreateUpdateAddressShortLink: View { } fileprivate struct InvestInSimpleXChat: View { + @EnvironmentObject var theme: AppTheme @State private var showGetStakeSheet = false var body: some View { @@ -782,12 +783,9 @@ fileprivate struct InvestInSimpleXChat: View { .scaledToFit() .cornerRadius(12) .onTapGesture { showGetStakeSheet = true } - HStack(alignment: .firstTextBaseline, spacing: 8) { - Text(verbatim: "Equity crowdfunding launched") - Button { showGetStakeSheet = true } label: { - Text(verbatim: "Learn more") - } - } + (Text(verbatim: "Equity crowdfunding launched. ") + Text(verbatim: "Learn more").foregroundColor(theme.colors.primary)) + .multilineTextAlignment(.leading) + .onTapGesture { showGetStakeSheet = true } } .frame(maxWidth: .infinity, alignment: .leading) .sheet(isPresented: $showGetStakeSheet) { @@ -796,14 +794,14 @@ fileprivate struct InvestInSimpleXChat: View { } } -fileprivate let getStakeSlides: [(image: String, text: String?)] = [ - ("crowdfunding_00", "For most of human history, conversations were private by default, and the communities people built belonged to them."), - ("crowdfunding_04", "All of them found SimpleX Chat without any paid marketing — and donated over $650,000, paying for something they could use for free."), - ("crowdfunding_05", "Each user group makes the network more valuable to the rest, driving organic growth."), - ("crowdfunding_06", "Some projects define themselves as SimpleX-first, running all communications of their applications over SimpleX Network."), - ("crowdfunding_07", "Other networks rely on user IDs to route messages, and large platforms monetize them — removing IDs would require rebuilding from scratch."), - ("crowdfunding_10", "The protocol is licensed to the foundation permanently — the network remains available regardless of who owns the company."), - ("crowdfunding_11", nil), +fileprivate let getStakeSlides: [(text: String, image: String)] = [ + ("We launched equity crowdfunding — by investing, you benefit from the company growth, and help build the network that people own.", "crowdfunding_00"), + ("For most of human history, conversations were private by default, and the communities people built belonged to them.", "crowdfunding_04"), + ("All of them found SimpleX Chat without any paid marketing — and donated over $650,000, paying for something they could use for free.", "crowdfunding_05"), + ("Each user group makes the network more valuable to the rest, driving organic growth.", "crowdfunding_06"), + ("Some projects define themselves as SimpleX-first, running all communications of their applications over SimpleX Network.", "crowdfunding_07"), + ("Other networks rely on user IDs to route messages, and large platforms monetize them — removing IDs would require rebuilding from scratch.", "crowdfunding_10"), + ("The protocol is licensed to the foundation permanently — the network remains available regardless of who owns the company.", "crowdfunding_11"), ] fileprivate struct GetStakeView: View { @@ -818,15 +816,12 @@ fileprivate struct GetStakeView: View { .bold() .fixedSize(horizontal: false, vertical: true) .padding(.vertical) - Text(verbatim: "We launched equity crowdfunding — by investing, you benefit from the company growth, and help build the network that people own.") ForEach(getStakeSlides, id: \.image) { slide in + Text(verbatim: slide.text) Image(slide.image) .resizable() .scaledToFit() .cornerRadius(12) - if let text = slide.text { - Text(verbatim: text) - } } Button { if let url = URL(string: "https://wefunder.com/simplexchat") {