scroll bounce 2

This commit is contained in:
Ian Gulliver
2026-10-17 08:29:57 -07:00
parent 6425bf0488
commit 57a99f2ed2
+2 -3
View File
@@ -564,11 +564,10 @@ private struct Scanner: View {
.fill(LinearGradient(colors: [.clear, color, .clear], startPoint: .leading, endPoint: .trailing))
.frame(width: 30, height: 2)
.offset(x: phase ? 54 : 0)
.animation(.easeInOut(duration: 1.2).repeatForever(autoreverses: true), value: phase)
.frame(width: 84, height: 2, alignment: .leading)
.onAppear {
withAnimation(.easeInOut(duration: 1.2).repeatForever(autoreverses: true)) {
phase = true
}
phase = true
}
}
}