Repository Public
1// =============================================================================2// SP BOUCHER | SOFTWARE & RESEARCH3// ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING4// =============================================================================5//6// Project : SP ID & Card Vault7// File : SPVault/Features/Settings/AboutView.swift8// Module : SPVault9// Repository : https://git.spboucher.ai/sp-id-card-vault10// Project Website : Not specified11// Created : 2026-12-0212// Last Modified : 2026-12-0213//14// Author : Simon-Pierre Boucher15// Position : Professor of Finance16// Institution : Université du Québec en Outaouais (UQO)17// Organization : SP Boucher18// Website : https://spboucher.ai19// Git : https://git.spboucher.ai20//21// Preferred Contact: contact@spboucher.ai22// Development : dev@spboucher.ai23// Support : support@spboucher.ai24// Security/Admin : admin@spboucher.ai25//26// Copyright (c) 202627// Simon-Pierre Boucher28// All rights reserved where applicable. This file is governed by the29// applicable project license, copyright notices and relevant law.30// Existing third-party rights and notices remain unaffected.31//32// License : None specified (no license file in this repository)33//34// Do not embed credentials, private keys, access tokens,35// certificates or confidential personal information.36//37// =============================================================================38// END OF SP BOUCHER SOURCE HEADER39// =============================================================================4041import SwiftUI4243struct AboutView: View {44 private var version: String { Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String ?? "—" }45 private var build: String { Bundle.main.object(forInfoDictionaryKey: "CFBundleVersion") as? String ?? "—" }4647 var body: some View {48 ScreenScaffold(eyebrow: "SP ID & Card Vault", title: "About", showsBack: true) {49 VStack(spacing: SP.Space.m) {50 VaultMark(size: 116)51 .shadow(color: SP.Palette.electric.opacity(0.16), radius: 26)52 VStack(spacing: 4) {53 Text("SP Vault").font(.spTitle).foregroundStyle(SP.Palette.textPrimary)54 Text("Version \(version) (\(build))").font(.spCaption).monospacedDigit().foregroundStyle(SP.Palette.textSecondary)55 .accessibilityIdentifier("about.version")56 }57 }58 .frame(maxWidth: .infinity)59 .padding(.vertical, SP.Space.s)6061 VStack(spacing: 0) {62 motto("Private", "by design.")63 Hairline()64 motto("Beautiful", "by engineering.")65 Hairline()66 motto("Personal", "by purpose.")67 }68 .padding(.horizontal, SP.Space.m)69 .spPanel(padding: 0)7071 PanelSection("Made by") {72 VStack(spacing: 0) {73 DetailRow("Author", "Simon-Pierre Boucher", symbol: "person.fill")74 Hairline()75 DetailRow(label: "Website", symbol: "globe") {76 Link("spboucher.ai", destination: URL(string: "https://spboucher.ai")!).foregroundStyle(SP.Palette.electric)77 }78 Hairline()79 DetailRow("Contact", "dev@spboucher.ai", symbol: "envelope.fill")80 Hairline()81 DetailRow("Distribution", "Private · one owner", symbol: "lock.fill")82 }83 .padding(.horizontal, SP.Space.m)84 }8586 PanelSection("What this app never does") {87 never("network.slash", "Use the network", "There is no server, no account and no API. The app works in airplane mode.")88 never("chart.bar.xaxis", "Collect analytics", "No tracking, no telemetry, no crash reports containing card data.")89 never("creditcard.trianglebadge.exclamationmark", "Keep a CVV, CVC or PIN", "Security codes are blacked out of photographs before they are saved, and there is no field to store them.")90 never("icloud.slash.fill", "Sync to iCloud", "The vault folder is excluded from device backups. Only your own .spvault files leave the iPhone.")91 never("photo.badge.exclamationmark", "Save to Photos", "Captures go straight from the camera to the encrypted vault.", last: true)92 }9394 PanelSection("Built with") {95 VStack(spacing: 0) {96 DetailRow("Language", "Swift 6 · SwiftUI", symbol: "swift")97 Hairline()98 DetailRow("Cryptography", "CryptoKit · Keychain", symbol: "lock.shield.fill")99 Hairline()100 DetailRow("Scanning", "Vision · AVFoundation", symbol: "viewfinder")101 Hairline()102 DetailRow("Third-party code", "None", symbol: "shippingbox.fill")103 }104 .padding(.horizontal, SP.Space.m)105 }106107 Text("© \(Calendar.current.component(.year, from: Date()).formatted(.number.grouping(.never))) Simon-Pierre Boucher")108 .font(.spCaption).foregroundStyle(SP.Palette.textTertiary).frame(maxWidth: .infinity)109 }110 }111112 private func motto(_ lead: String, _ rest: String) -> some View {113 HStack(alignment: .firstTextBaseline, spacing: 6) {114 Text(lead).font(.spHeadline.width(.expanded)).foregroundStyle(SP.Palette.textPrimary)115 Text(rest).font(.spCallout).foregroundStyle(SP.Palette.textSecondary)116 Spacer()117 }118 .padding(.vertical, 14)119 .accessibilityElement(children: .combine)120 }121122 private func never(_ symbol: String, _ title: String, _ detail: String, last: Bool = false) -> some View {123 SettingRow(symbol: symbol, title: title, caption: detail, showsDivider: !last) {124 Image(systemName: "xmark").font(.system(size: 12, weight: .bold)).foregroundStyle(SP.Palette.critical).accessibilityHidden(true)125 }126 .accessibilityElement(children: .combine)127 .accessibilityLabel("Never: \(title). \(detail)")128 }129}130