commit 5a2ce38e4f7d9d08615ef1d1b92c668ee95d5c14
parent 13bc7a756f8a0c1a343dc6e971ef3b0423690b84
Author: Michael Camilleri <[email protected]>
Date: Fri, 27 Feb 2026 17:28:54 +0900
Fix checkmark transition
Co-Authored-By: Codex GPT 5.3 <[email protected]>
Diffstat
| M | ListlessiOS/Views/TaskRowView.swift | | | 13 | +++++++++---- |
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/ListlessiOS/Views/TaskRowView.swift b/ListlessiOS/Views/TaskRowView.swift
@@ -64,10 +64,15 @@ struct TaskRowView: View {
let previewCompleted = isSwipeTriggered && swipeDirection == .right
? !task.isCompleted
: task.isCompleted
- Image(systemName: previewCompleted ? "checkmark.circle.fill" : "circle")
- .foregroundStyle(previewCompleted ? Color.secondary : Color.primary)
- .font(.system(size: 17))
- .fontWeight(.thin)
+ ZStack {
+ Image(systemName: "checkmark.circle.fill")
+ .opacity(previewCompleted ? 1 : 0)
+ Image(systemName: "circle")
+ .opacity(previewCompleted ? 0 : 1)
+ }
+ .transaction { $0.animation = nil }
+ .foregroundStyle(Color.secondary)
+ .font(.system(size: 17))
}
.buttonStyle(.borderless)