krz/daybyday

iOS learning games for young children: days, months, seasons, numbers, letters, animals and more. education ios kids swift https://krz.sh/apps/daybyday/

FoodView.swift

062549ad26607ce9e973ed2a9a7ef6f853885f83
daybyday/FoodView.swift history · blame · raw

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}