FoodView.swift
19 lines · 350 bytes
1 symbol in this file
1//
2// FoodView.swift
3// DayByDay
4//
5
6import SwiftUI
7
8/// Displays all 12 fruits and vegetables as large, tappable cards in a scrollable grid.
9struct FoodView: View {
10 var body: some View {
11 CardGrid(items: LearnFood.allCases, column: .narrowCards) { food in
12 FoodCard(food: food)
13 }
14 }
15}
16
17#Preview {
18 FoodView()
19}