ColorsView.swift
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}