fix: replace deprecated Text concatenation with HStack for iOS 26
All checks were successful
Security Checks / dependency-audit (push) Successful in 13s
Security Checks / secret-scanning (push) Successful in 4s
Security Checks / dockerfile-lint (push) Successful in 4s

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Yusuf Suleman
2026-04-03 16:31:47 -05:00
parent 0309e6faba
commit fcbbee2c8d

View File

@@ -45,12 +45,14 @@ struct MealSectionView: View {
Spacer() Spacer()
Text("\(Int(totalCalories))") HStack(spacing: 2) {
.font(.title3.weight(.bold)) Text("\(Int(totalCalories))")
.foregroundStyle(Color.mealColor(for: mealType.rawValue)) .font(.title3.weight(.bold))
+ Text(" kcal") .foregroundStyle(Color.mealColor(for: mealType.rawValue))
.font(.caption.weight(.medium)) Text("kcal")
.foregroundStyle(Color.textSecondary) .font(.caption.weight(.medium))
.foregroundStyle(Color.textSecondary)
}
Image(systemName: "chevron.right") Image(systemName: "chevron.right")
.font(.caption.weight(.medium)) .font(.caption.weight(.medium))