From c53a320698c17d98477c0384f1f644da9735f645 Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Sat, 14 Mar 2026 09:56:39 -0500 Subject: implement more learning categories --- AlphabetView.swift | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 AlphabetView.swift (limited to 'AlphabetView.swift') diff --git a/AlphabetView.swift b/AlphabetView.swift new file mode 100644 index 0000000..64af026 --- /dev/null +++ b/AlphabetView.swift @@ -0,0 +1,30 @@ +// +// AlphabetView.swift +// DayByDay +// + +import SwiftUI + +/// Displays all 26 letters A–Z as large, tappable cards in a scrollable grid. +/// Uses a smaller minimum size to fit more letters across the screen. +struct AlphabetView: View { + private let columns = [ + GridItem(.adaptive(minimum: 140, maximum: 300), spacing: 20) + ] + + var body: some View { + ScrollView { + LazyVGrid(columns: columns, spacing: 20) { + ForEach(LearnLetter.allCases) { letter in + LetterCard(letter: letter) + .frame(height: 160) + } + } + .padding(32) + } + } +} + +#Preview { + AlphabetView() +} -- cgit v1.2.3