summaryrefslogtreecommitdiff
path: root/AlphabetView.swift
diff options
context:
space:
mode:
Diffstat (limited to 'AlphabetView.swift')
-rw-r--r--AlphabetView.swift30
1 files changed, 30 insertions, 0 deletions
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()
+}