// // WhatsNewView.swift // Zashi // // Created by Lukáš Korba on 05-14-2024 // import SwiftUI import ComposableArchitecture import Generated import UIComponents import WhatsNewProvider public struct WhatsNewView: View { @Environment(\.colorScheme) var colorScheme @Perception.Bindable var store: StoreOf public init(store: StoreOf) { self.store = store } public var body: some View { WithPerceptionTracking { VStack(spacing: 0) { ScrollView { HStack(spacing: 0) { Text(L10n.WhatsNew.version(store.latest.version)) .zFont(.semiBold, size: 20, style: Design.Text.primary) Spacer() Text(store.latest.date) .zFont(.semiBold, size: 14, style: Design.Text.primary) } .padding(.top, 40) .padding(.bottom, 16) .frame(maxWidth: .infinity, alignment: .leading) .screenHorizontalPadding() WithPerceptionTracking { ForEach(0..( initialState: .initial ) { WhatsNew() } } // MARK: - Placeholders extension WhatsNew.State { public static let initial = WhatsNew.State(latest: .zero, releases: .zero) }