From 3ac6b8dde890328ab8dccce6115e86484dcafb53 Mon Sep 17 00:00:00 2001 From: neon443 <69979447+neon443@users.noreply.github.com> Date: Sun, 24 Aug 2025 16:43:39 +0100 Subject: [PATCH] update animation --- ShhShell/Views/Settings/SettingsView.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ShhShell/Views/Settings/SettingsView.swift b/ShhShell/Views/Settings/SettingsView.swift index 34174a1..4471df5 100644 --- a/ShhShell/Views/Settings/SettingsView.swift +++ b/ShhShell/Views/Settings/SettingsView.swift @@ -19,7 +19,7 @@ struct SettingsView: View { if hostsManager.settings.cursorType.blink { blinkTimer?.invalidate() blinkTimer = nil - blinkTimer = Timer(timeInterval: 0.75, repeats: true) { timer in + blinkTimer = Timer(timeInterval: 1, repeats: true) { timer in Task { @MainActor in blinkCursor.toggle() } @@ -85,7 +85,7 @@ struct SettingsView: View { .onAppear() { startBlinkingIfNeeded() } - .opacity(blinkCursor ? 0.5 : 1) + .opacity(blinkCursor ? 0 : 1) .animation( Animation.easeInOut(duration: 1), value: blinkCursor