1.6.0 #10 ocultar saldos + Face ID · #11 widget interactivo + Siri

#10 Ocultar saldos: BalancePrivacyManager (balancesHidden + requireBiometricToReveal),
modifier .hiddenBalance() (blur + máscara de bullets, ancho estable), botón ojo en Dashboard,
revelar con Face ID vía AppLockService, sección Privacidad en Settings. Aplicado a total
portfolio, forecast, sources, goals, monthly summary.

#11 Siri/App Intents: NetWorthIntent ('¿cuál es mi patrimonio?' → 'Tu patrimonio es X'),
StreakIntent, 5 AppShortcuts con frases. Widget interactivo iOS 17: botón Refresh
(Button(intent:) → reloadAllTimelines, in-process) en medium/large, gated #available(iOS 17).
Reader read-only del AppGroup. Dialogs Siri refactorizados a String(localized:).

Localización: strings de #10 y de Siri en los 7 idiomas.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L2p3gUZRNWW388rWFRjiU7
This commit is contained in:
alexandrev-tibco
2026-07-25 17:52:09 +02:00
parent 648c2bd805
commit 326be6db04
20 changed files with 587 additions and 8 deletions
@@ -18,6 +18,7 @@ struct SettingsView: View {
@ObservedObject private var cloudStack = CoreDataStack.shared
@ObservedObject private var updateService = AppUpdateService.shared
@ObservedObject private var balancePrivacy = BalancePrivacyManager.shared
@State private var showingPinSetup = false
@State private var showingPinChange = false
@@ -58,6 +59,9 @@ struct SettingsView: View {
backupsSection
}
// Privacy Section
privacySection
// Security Section
securitySection
@@ -677,6 +681,24 @@ struct SettingsView: View {
// MARK: - Security Section
private var privacySection: some View {
Section {
Toggle("Hide Balances", isOn: $balancePrivacy.balancesHidden)
Toggle("Require Face ID to Reveal", isOn: $balancePrivacy.requireBiometricToReveal)
.onChange(of: balancePrivacy.requireBiometricToReveal) { _, enabled in
if enabled && !AppLockService.canUseBiometrics() {
balancePrivacy.requireBiometricToReveal = false
showingBiometricAlert = true
}
}
} header: {
Text("Privacy")
} footer: {
Text("Hide all monetary amounts behind a blur. Great for using the app in public or taking screenshots. Optionally require Face ID to reveal them.")
}
}
private var securitySection: some View {
Section {
Toggle("Require PIN", isOn: $pinEnabled)