← All repositories

listless

A simple list app for Apple platforms

git clone https://code.inqk.net/listless.git


commit ac3ad1528bdbd984114498e03d53f5a0ae012087
parent e9d7e19b69dcf1744ab328cec7b30d9d5ce31f55
Author: Michael Camilleri <[email protected]>
Date:   Tue, 31 Mar 2026 03:41:16 +0900

Remove superfluous animation on swipe-to-complete gesture

Diffstat

MListlessiOS/Helpers/ItemRowSwipeGesture.swift | 6++----

1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/ListlessiOS/Helpers/ItemRowSwipeGesture.swift b/ListlessiOS/Helpers/ItemRowSwipeGesture.swift

@@ -145,11 +145,9 @@ struct ItemRowSwipeGesture: ViewModifier {
         }
         if isTriggered {
             if swipeDirection == .right {
-                // Complete: spring back and let SwiftUI animate the row to the completed section
+                // Complete: keep the row at its current offset and let the
+                // ForEach re-evaluation animate it out of the active section.
                 triggerAction(action: onComplete)
-                withAnimation(.spring(response: 0.3, dampingFraction: 0.8)) {
-                    resetSwipeState()
-                }
             } else {
                 // Delete: slide off screen
                 triggerAction(action: onDelete)