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 } } }