blob: 64af026492a115d7e190cb4842baf98c547263d2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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()
}
|