Files
honeyDueKMP/iosApp/iosApp/Subviews/Common/ErrorView.swift
Trey t a2b81a244b Implement custom 5-color design system across entire iOS app
Apply consistent branding colors (BlueGreen, Cerulean, BrightAmber, PrimaryScarlet,
cream backgrounds) to all screens, components, buttons, icons, and text throughout
the app. Update all Form/List views with proper list row backgrounds to ensure
visual consistency with card-based layouts.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-21 07:58:01 -06:00

35 lines
899 B
Swift

import SwiftUI
struct ErrorView: View {
let message: String
let retryAction: () -> Void
var body: some View {
VStack(spacing: 16) {
Image(systemName: "exclamationmark.triangle")
.font(.system(size: 64))
.foregroundColor(Color.appError)
Text("Error: \(message)")
.foregroundColor(Color.appError)
.multilineTextAlignment(.center)
Button(action: retryAction) {
Text("Retry")
.padding(.horizontal, 32)
.padding(.vertical, 12)
.background(Color.appPrimary)
.foregroundColor(Color.appTextOnPrimary)
.cornerRadius(8)
}
}
.padding()
}
}
#Preview {
ErrorView(message: "Failed to load data") {
print("Retry tapped")
}
}