From 7748392c3188badc692047407798b3f98655cfc1 Mon Sep 17 00:00:00 2001 From: Cosmo Date: Wed, 25 Mar 2026 17:26:03 +0000 Subject: [PATCH] fix: remove targetAmount (not in API model) --- PulseHealth/Views/Savings/SavingsView.swift | 7 +------ project.yml | 9 +++++---- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/PulseHealth/Views/Savings/SavingsView.swift b/PulseHealth/Views/Savings/SavingsView.swift index 26ee184..fa98140 100644 --- a/PulseHealth/Views/Savings/SavingsView.swift +++ b/PulseHealth/Views/Savings/SavingsView.swift @@ -657,12 +657,7 @@ struct SavingsCategoryCard: View { Text(formatAmt(category.currentAmount ?? 0)) .font(.callout.bold()) .foregroundColor(Color(hex: category.colorHex)) - if let target = category.targetAmount, target > 0 { - let progress = min((category.currentAmount ?? 0) / target, 1.0) - Text(String(format: "%.0f%%", progress * 100)) - .font(.caption2) - .foregroundColor(Color(hex: "8888aa")) - } + } } .padding(14) diff --git a/project.yml b/project.yml index 90c2aab..fcca12a 100644 --- a/project.yml +++ b/project.yml @@ -8,6 +8,10 @@ targets: type: application platform: iOS sources: PulseHealth + entitlements: + path: PulseHealth/PulseHealth.entitlements + capabilities: + - healthkit settings: base: PRODUCT_BUNDLE_IDENTIFIER: com.daniil.pulsehealth @@ -15,7 +19,4 @@ targets: INFOPLIST_FILE: PulseHealth/Info.plist CODE_SIGN_STYLE: Automatic CODE_SIGN_ENTITLEMENTS: PulseHealth/PulseHealth.entitlements - entitlements: - path: PulseHealth/PulseHealth.entitlements - capabilities: - - com.apple.HealthKit + DEVELOPMENT_TEAM: TEAM_ID_PLACEHOLDER