fix: replace deprecated Text concatenation with HStack for iOS 26
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -45,12 +45,14 @@ struct MealSectionView: View {
|
||||
|
||||
Spacer()
|
||||
|
||||
HStack(spacing: 2) {
|
||||
Text("\(Int(totalCalories))")
|
||||
.font(.title3.weight(.bold))
|
||||
.foregroundStyle(Color.mealColor(for: mealType.rawValue))
|
||||
+ Text(" kcal")
|
||||
Text("kcal")
|
||||
.font(.caption.weight(.medium))
|
||||
.foregroundStyle(Color.textSecondary)
|
||||
}
|
||||
|
||||
Image(systemName: "chevron.right")
|
||||
.font(.caption.weight(.medium))
|
||||
|
||||
Reference in New Issue
Block a user