Files
simplex-chat/apps/ios/Shared/Views/Badges/BadgesHowItWorksView.swift
EvgenyandEvgeny @ SimpleX Chat 0183a36058 ui: update text about badges (#7544)
* ui: update text about badges

* update

* update

* update

* update

* update

* update

* update kotlin

---------

Co-authored-by: Evgeny @ SimpleX Chat <259188159+evgeny-simplex@users.noreply.github.com>
2026-09-19 14:16:39 +01:00

48 lines
1.7 KiB
Swift

//
// BadgesHowItWorksView.swift
// SimpleX (iOS)
//
// Created by spaced4ndy on 28.07.2026.
// Copyright © 2026 SimpleX Chat. All rights reserved.
//
import SwiftUI
import SimpleXChat
struct BadgesHowItWorksView: View {
@EnvironmentObject var theme: AppTheme
var body: some View {
VStack(alignment: .leading) {
Text("How badges protect your privacy")
.font(.largeTitle)
.bold()
.foregroundColor(theme.colors.primary)
.padding(.top, 8)
.padding(.bottom, 16)
ScrollView {
VStack(alignment: .leading, spacing: 12) {
Text("A badge is an anonymous credential stored in your profile on your device. This credential is never sent to anyone.")
Text("To prove to a contact or a server that you have a badge, the app generates a new proof that reveals only the badge type and the expiry date, rounded to a week.")
Text("Nobody can link two different proofs to each other or to the purchase.")
ExternalLink("Read more in our blog.", destination: URL(string: "https://simplex.chat/blog/20260919-simplex-supporter-badges.html")!)
}
.lineLimit(nil)
.fixedSize(horizontal: false, vertical: true)
}
Spacer()
}
.padding(.horizontal, 25)
.frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .topLeading)
.navigationBarTitleDisplayMode(.inline)
}
}
struct BadgesHowItWorksView_Previews: PreviewProvider {
static var previews: some View {
NavigationView {
BadgesHowItWorksView()
}
}
}