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