From fcbbee2c8da33c3297f92d7a4085002a6cfbefc1 Mon Sep 17 00:00:00 2001 From: Yusuf Suleman Date: Fri, 3 Apr 2026 16:31:47 -0500 Subject: [PATCH] fix: replace deprecated Text concatenation with HStack for iOS 26 Co-Authored-By: Claude Opus 4.6 (1M context) --- .../Features/Fitness/Views/MealSectionView.swift | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/ios/Platform/Platform/Features/Fitness/Views/MealSectionView.swift b/ios/Platform/Platform/Features/Fitness/Views/MealSectionView.swift index eabc170..69da0f8 100644 --- a/ios/Platform/Platform/Features/Fitness/Views/MealSectionView.swift +++ b/ios/Platform/Platform/Features/Fitness/Views/MealSectionView.swift @@ -45,12 +45,14 @@ struct MealSectionView: View { Spacer() - Text("\(Int(totalCalories))") - .font(.title3.weight(.bold)) - .foregroundStyle(Color.mealColor(for: mealType.rawValue)) - + Text(" kcal") - .font(.caption.weight(.medium)) - .foregroundStyle(Color.textSecondary) + HStack(spacing: 2) { + Text("\(Int(totalCalories))") + .font(.title3.weight(.bold)) + .foregroundStyle(Color.mealColor(for: mealType.rawValue)) + Text("kcal") + .font(.caption.weight(.medium)) + .foregroundStyle(Color.textSecondary) + } Image(systemName: "chevron.right") .font(.caption.weight(.medium))