DayByDay/MonthsOfYearView.swift
20 lines · 446 bytes
1 symbol in this file
1//
2// MonthsOfYearView.swift
3// DayByDay
4//
5
6import SwiftUI
7
8/// Displays all twelve months as large, tappable cards in a scrollable grid.
9/// Adapts between 1 and 2 columns depending on available width.
10struct MonthsOfYearView: View {
11 var body: some View {
12 CardGrid(items: MonthOfYear.allCases) { month in
13 MonthCard(month: month, isHighlighted: month == .current)
14 }
15 }
16}
17
18#Preview {
19 MonthsOfYearView()
20}