krz/daybyday

iOS learning games for young children: days, months, seasons, numbers, letters, animals and more. education ios kids swift https://krz.sh/apps/daybyday/

DayByDay/SeasonsView.swift

062549ad26607ce9e973ed2a9a7ef6f853885f83
daybyday/DayByDay/SeasonsView.swift history · blame · raw

20 lines · 430 bytes

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