Make onboarding added dishes list scrollable to keep Finish button stable

This commit is contained in:
alexandrev-tibco
2026-02-26 11:08:30 +01:00
parent 9f4cf7484d
commit ae40ec6f09
@@ -127,6 +127,8 @@ struct FirstDishesStepView: View {
.foregroundColor(.mealMoodTextSecondary)
.padding(.horizontal, 24)
ScrollView {
LazyVStack(spacing: 8) {
ForEach(Array(viewModel.addedDishes.enumerated()), id: \.offset) { index, dish in
HStack {
Image(systemName: "checkmark.circle.fill")
@@ -156,10 +158,13 @@ struct FirstDishesStepView: View {
.padding(12)
.background(Color.mealMoodSurface)
.cornerRadius(12)
.padding(.horizontal, 24)
}
}
}
.frame(maxHeight: 190)
.padding(.horizontal, 24)
}
}
VStack(alignment: .leading, spacing: 10) {
Text("first_dishes_suggestions")