Activity Chart Intensity Logic

Nucleic-Session: 76D64900-B16F-45BE-A6CB-E3D2EBC7C73A
Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
2026-06-27 19:15:00 -07:00
co-authored by Nucleic
parent 09a8d590c9
commit ccd2a96de0
@@ -128,13 +128,26 @@ private struct InProgressSessions: View {
}
private struct StatCard: View {
let value: Int
let value: String
let label: String
let icon: String
init(value: Int, label: String, icon: String) {
self.value = "\(value)"
self.label = label
self.icon = icon
}
init(value: String, label: String, icon: String) {
self.value = value
self.label = label
self.icon = icon
}
var body: some View {
VStack(alignment: .leading, spacing: 4) {
Image(systemName: icon).foregroundStyle(Palette.accent)
Text("\(value)").font(.title2.weight(.semibold).monospacedDigit())
Text(value).font(.title2.weight(.semibold).monospacedDigit())
Text(label).font(.caption).foregroundStyle(.secondary)
}
.frame(maxWidth: .infinity, alignment: .leading)