This commit is contained in:
Evgeny @ SimpleX Chat
2026-08-12 22:01:15 +00:00
parent d707688ed6
commit f3ce5eed87
@@ -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") {