From 57a99f2ed22435b71bdaf6647aed07c87622d5c7 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Sat, 17 Oct 2026 08:29:57 -0700 Subject: [PATCH] scroll bounce 2 --- mac/Sources/Byre/Chat.swift | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mac/Sources/Byre/Chat.swift b/mac/Sources/Byre/Chat.swift index 5c05547..baa2b0e 100644 --- a/mac/Sources/Byre/Chat.swift +++ b/mac/Sources/Byre/Chat.swift @@ -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 } } }