blob: 73019f5c3ae1798cafc57713d4959b68318013b3 (
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
|
//
// BodyPartsView.swift
// DayByDay
//
import SwiftUI
/// Displays all 12 body parts as large, tappable cards in a scrollable grid.
struct BodyPartsView: View {
private let columns = [
GridItem(.adaptive(minimum: 280), spacing: 24)
]
var body: some View {
ScrollView {
LazyVGrid(columns: columns, spacing: 24) {
ForEach(LearnBodyPart.allCases) { part in
BodyPartCard(bodyPart: part)
.frame(height: 200)
}
}
.padding(32)
}
}
}
#Preview {
BodyPartsView()
}
|