Make onboarding added dishes list scrollable to keep Finish button stable
This commit is contained in:
@@ -127,6 +127,8 @@ struct FirstDishesStepView: View {
|
|||||||
.foregroundColor(.mealMoodTextSecondary)
|
.foregroundColor(.mealMoodTextSecondary)
|
||||||
.padding(.horizontal, 24)
|
.padding(.horizontal, 24)
|
||||||
|
|
||||||
|
ScrollView {
|
||||||
|
LazyVStack(spacing: 8) {
|
||||||
ForEach(Array(viewModel.addedDishes.enumerated()), id: \.offset) { index, dish in
|
ForEach(Array(viewModel.addedDishes.enumerated()), id: \.offset) { index, dish in
|
||||||
HStack {
|
HStack {
|
||||||
Image(systemName: "checkmark.circle.fill")
|
Image(systemName: "checkmark.circle.fill")
|
||||||
@@ -156,10 +158,13 @@ struct FirstDishesStepView: View {
|
|||||||
.padding(12)
|
.padding(12)
|
||||||
.background(Color.mealMoodSurface)
|
.background(Color.mealMoodSurface)
|
||||||
.cornerRadius(12)
|
.cornerRadius(12)
|
||||||
.padding(.horizontal, 24)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.frame(maxHeight: 190)
|
||||||
|
.padding(.horizontal, 24)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
VStack(alignment: .leading, spacing: 10) {
|
VStack(alignment: .leading, spacing: 10) {
|
||||||
Text("first_dishes_suggestions")
|
Text("first_dishes_suggestions")
|
||||||
|
|||||||
Reference in New Issue
Block a user