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>
35 lines
899 B
Swift
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")
|
|
}
|
|
}
|