From 38ce138cea020c3a2ca14e42eeb3fe5f9eaaba97 Mon Sep 17 00:00:00 2001 From: neon443 <69979447+neon443@users.noreply.github.com> Date: Mon, 25 Aug 2025 17:05:14 +0100 Subject: [PATCH] idk what im doing :sob: --- ShhShell/Views/Settings/SettingsView.swift | 30 ++++++++++++---------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/ShhShell/Views/Settings/SettingsView.swift b/ShhShell/Views/Settings/SettingsView.swift index 850004a..94e7664 100644 --- a/ShhShell/Views/Settings/SettingsView.swift +++ b/ShhShell/Views/Settings/SettingsView.swift @@ -119,21 +119,25 @@ struct SettingsView: View { Text(">") .font(.largeTitle).monospaced() .foregroundStyle(.blue) - Group { - switch hostsManager.settings.cursorType.cursorShape { - case .block: - Rectangle() - .frame(width: 20, height: 40) - case .bar: - Rectangle() - .frame(width: 4, height: 40) - case .underline: - Rectangle() - .frame(width: 20, height: 4) - .padding(.top, 36) - } + ZStack { +// switch hostsManager.settings.cursorType.cursorShape { + if hostsManager.settings.cursorType.cursorShape == .block { + Rectangle() + .frame(width: 20, height: 40) + } else if hostsManager.settings.cursorType.cursorShape == .bar { + Rectangle() + .frame(width: 4, height: 40) + } else if hostsManager.settings.cursorType.cursorShape == .underline { + Rectangle() + .frame(width: 20, height: 4) + .padding(.top, 36) + } +// } } // .padding(.leading, 248) + .id(hostsManager.settings.cursorType.cursorShape) + .animation(.default, value: hostsManager.settings.cursorType.cursorShape) + .transition(.opacity) .onChange(of: hostsManager.settings.cursorType.blink) { _ in startBlinkingIfNeeded() }