scroll bounce 2
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user