From d707688ed64f1469c518059e94fc88edf0396f3f Mon Sep 17 00:00:00 2001 From: "Evgeny @ SimpleX Chat" <259188159+evgeny-simplex@users.noreply.github.com> Date: Wed, 12 Aug 2026 21:56:23 +0000 Subject: [PATCH] button --- .../Views/Onboarding/WhatsNewView.swift | 46 +++++++------------ 1 file changed, 17 insertions(+), 29 deletions(-) diff --git a/apps/ios/Shared/Views/Onboarding/WhatsNewView.swift b/apps/ios/Shared/Views/Onboarding/WhatsNewView.swift index 81e2858f26..b65cb53a70 100644 --- a/apps/ios/Shared/Views/Onboarding/WhatsNewView.swift +++ b/apps/ios/Shared/Views/Onboarding/WhatsNewView.swift @@ -782,10 +782,11 @@ fileprivate struct InvestInSimpleXChat: View { .scaledToFit() .cornerRadius(12) .onTapGesture { showGetStakeSheet = true } - Text(verbatim: "Equity crowdfunding launched") - .multilineTextAlignment(.leading) - Button { showGetStakeSheet = true } label: { - Text(verbatim: "Learn more") + HStack(alignment: .firstTextBaseline, spacing: 8) { + Text(verbatim: "Equity crowdfunding launched") + Button { showGetStakeSheet = true } label: { + Text(verbatim: "Learn more") + } } } .frame(maxWidth: .infinity, alignment: .leading) @@ -810,37 +811,23 @@ fileprivate struct GetStakeView: View { @EnvironmentObject var chatModel: ChatModel var body: some View { - VStack { - List { + ScrollView { + VStack(alignment: .leading, spacing: 18) { Text(verbatim: "Get a stake in SimpleX Chat") .font(.largeTitle) .bold() .fixedSize(horizontal: false, vertical: true) .padding(.vertical) - .listRowBackground(Color.clear) - .listRowSeparator(.hidden) - .listRowInsets(EdgeInsets(top: 0, leading: 0, bottom: 0, trailing: 0)) - VStack(alignment: .leading, spacing: 18) { - 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 - Image(slide.image) - .resizable() - .scaledToFit() - .cornerRadius(12) - if let text = slide.text { - Text(verbatim: text) - } + 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 + Image(slide.image) + .resizable() + .scaledToFit() + .cornerRadius(12) + if let text = slide.text { + Text(verbatim: text) } } - .frame(maxWidth: .infinity, alignment: .leading) - .listRowBackground(Color.clear) - .listRowInsets(EdgeInsets(top: 0, leading: 0, bottom: 0, trailing: 0)) - } - .frame(maxHeight: .infinity, alignment: .top) - - Spacer() - - VStack { Button { if let url = URL(string: "https://wefunder.com/simplexchat") { openExternalLink(url) @@ -849,7 +836,7 @@ fileprivate struct GetStakeView: View { Text(verbatim: "Learn more on Wefunder") } .buttonStyle(OnboardingButtonStyle()) - .padding(.bottom) + .padding(.top) Button { dismiss() @@ -861,6 +848,7 @@ fileprivate struct GetStakeView: View { .font(.callout) } .disabled(chatModel.chatRunning != true) + .frame(maxWidth: .infinity) } .padding() }