Skip to content

Commit 6f8a9aa

Browse files
authored
Merge pull request #201 from supabitapp/sbertix/row-flashing
Scope shimmer animation to prevent row blinking
2 parents 5016e25 + f23575e commit 6f8a9aa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

supacode/Features/Repositories/Views/WorktreeRow.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -425,10 +425,10 @@ private struct ShimmerModifier: ViewModifier {
425425
startPoint: phase ? UnitPoint(x: 1, y: 1) : UnitPoint(x: -0.5, y: -0.5),
426426
endPoint: phase ? UnitPoint(x: 1.5, y: 1.5) : UnitPoint(x: 0, y: 0)
427427
)
428-
)
429-
.animation(
430-
isActive ? .linear(duration: 1.5).delay(0.25).repeatForever(autoreverses: false) : nil,
431-
value: phase
428+
.animation(
429+
isActive ? .linear(duration: 1.5).delay(0.25).repeatForever(autoreverses: false) : nil,
430+
value: phase
431+
)
432432
)
433433
.task(id: isActive) { phase = isActive }
434434
}

0 commit comments

Comments
 (0)