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/

AnimalsView.swift

062549ad26607ce9e973ed2a9a7ef6f853885f83
daybyday/AnimalsView.swift history · blame · raw

21 lines · 445 bytes

1 symbol in this file
 1//
 2//  AnimalsView.swift
 3//  DayByDay
 4//
 5
 6import SwiftUI
 7
 8/// Displays 12 animals as large, tappable cards in a scrollable grid.
 9/// Adapts between 1 and 2 columns depending on available width.
10struct AnimalsView: View {
11    var body: some View {
12        CardGrid(items: LearnAnimal.allCases) { animal in
13            AnimalCard(animal: animal)
14        }
15        .onDisappear { CardVoice.shared.cancel() }
16    }
17}
18
19#Preview {
20    AnimalsView()
21}