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/

ColorsView.swift

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

20 lines · 390 bytes

1 symbol in this file
 1//
 2//  ColorsView.swift
 3//  DayByDay
 4//
 5
 6import SwiftUI
 7
 8/// Displays 10 colors as large, tappable cards in a scrollable grid.
 9/// Adapts between 1 and 2 columns depending on available width.
10struct ColorsView: View {
11    var body: some View {
12        CardGrid(items: LearnColor.allCases) { color in
13            ColorCard(learnColor: color)
14        }
15    }
16}
17
18#Preview {
19    ColorsView()
20}