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()
|
Spacer()
|
||||||
|
|
||||||
|
HStack(spacing: 2) {
|
||||||
Text("\(Int(totalCalories))")
|
Text("\(Int(totalCalories))")
|
||||||
.font(.title3.weight(.bold))
|
.font(.title3.weight(.bold))
|
||||||
.foregroundStyle(Color.mealColor(for: mealType.rawValue))
|
.foregroundStyle(Color.mealColor(for: mealType.rawValue))
|
||||||
+ Text(" kcal")
|
Text("kcal")
|
||||||
.font(.caption.weight(.medium))
|
.font(.caption.weight(.medium))
|
||||||
.foregroundStyle(Color.textSecondary)
|
.foregroundStyle(Color.textSecondary)
|
||||||
|
}
|
||||||
|
|
||||||
Image(systemName: "chevron.right")
|
Image(systemName: "chevron.right")
|
||||||
.font(.caption.weight(.medium))
|
.font(.caption.weight(.medium))
|
||||||
|
|||||||
Reference in New Issue
Block a user