From 85aa0905bd79c4c264a51a3c0c2286989a4f69d5 Mon Sep 17 00:00:00 2001 From: Beingpax Date: Fri, 29 Aug 2025 16:20:56 +0545 Subject: [PATCH] Updated animations --- VoiceInk/Views/Settings/ExperimentalFeaturesSection.swift | 2 ++ VoiceInk/Views/Settings/SettingsView.swift | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/VoiceInk/Views/Settings/ExperimentalFeaturesSection.swift b/VoiceInk/Views/Settings/ExperimentalFeaturesSection.swift index 86bde1a..900af55 100644 --- a/VoiceInk/Views/Settings/ExperimentalFeaturesSection.swift +++ b/VoiceInk/Views/Settings/ExperimentalFeaturesSection.swift @@ -41,8 +41,10 @@ struct ExperimentalFeaturesSection: View { } .toggleStyle(.switch) .help("Automatically pause active media playback during recordings and resume afterward.") + .transition(.opacity.combined(with: .move(edge: .top))) } } + .animation(.easeInOut(duration: 0.3), value: isExperimentalFeaturesEnabled) .padding(16) .frame(maxWidth: .infinity, alignment: .leading) .background(CardBackground(isSelected: false, useAccentGradientWhenSelected: true)) diff --git a/VoiceInk/Views/Settings/SettingsView.swift b/VoiceInk/Views/Settings/SettingsView.swift index 37f18e1..e54ae0a 100644 --- a/VoiceInk/Views/Settings/SettingsView.swift +++ b/VoiceInk/Views/Settings/SettingsView.swift @@ -77,7 +77,7 @@ struct SettingsView: View { // Custom Cancel Shortcut VStack(alignment: .leading, spacing: 12) { HStack(spacing: 8) { - Toggle(isOn: $isCustomCancelEnabled) { + Toggle(isOn: $isCustomCancelEnabled.animation()) { Text("Custom Cancel Shortcut") } .toggleStyle(.switch)