Files
honeyDueKMP/iosApp/iosApp/Subviews/Residence/TaskStatChip.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

52 lines
1.0 KiB
Swift

import SwiftUI
struct TaskStatChip: View {
let icon: String
let value: String
let label: String
let color: Color
var body: some View {
HStack(spacing: 4) {
Image(systemName: icon)
.font(.caption)
.foregroundColor(color)
Text(value)
.font(.subheadline)
.fontWeight(.bold)
.foregroundColor(color)
Text(label)
.font(.caption)
.foregroundColor(Color.appTextSecondary)
}
}
}
#Preview {
VStack(spacing: 16) {
TaskStatChip(
icon: "list.bullet",
value: "10",
label: "Tasks",
color: .blue
)
TaskStatChip(
icon: "checkmark.circle.fill",
value: "3",
label: "Done",
color: .green
)
TaskStatChip(
icon: "clock.fill",
value: "5",
label: "Pending",
color: .orange
)
}
.padding()
}