From 705d997b78e0e3fda51b2749459db18f3147d8c0 Mon Sep 17 00:00:00 2001 From: Nucleic Date: Fri, 26 Jun 2026 01:18:36 -0700 Subject: [PATCH] Streak Freeze Feature Implementation Nucleic-Session: 89DB7BC1-F74C-4768-BC7B-25F898265E0E --- NucleicRemote/NucleicRemote/Views/HomeView.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/NucleicRemote/NucleicRemote/Views/HomeView.swift b/NucleicRemote/NucleicRemote/Views/HomeView.swift index 5447462..2259630 100644 --- a/NucleicRemote/NucleicRemote/Views/HomeView.swift +++ b/NucleicRemote/NucleicRemote/Views/HomeView.swift @@ -196,8 +196,12 @@ struct ActivityGrid: View { VStack(spacing: gap) { ForEach(0..<7, id: \.self) { row in let date = cal.date(byAdding: .day, value: col * 7 + row, to: gridStart)! + let isFuture = date > today + let isFrozen = !isFuture && frozenDays.contains(date) RoundedRectangle(cornerRadius: 2) - .fill(date > today ? Color.clear : Palette.activity(level: Self.level(activityByDay[date] ?? 0))) + .fill(isFuture ? Color.clear + : isFrozen ? Palette.frozen + : Palette.activity(level: Self.level(activityByDay[date] ?? 0))) .frame(width: cell, height: cell) } }