Updated animations

This commit is contained in:
Beingpax 2025-08-29 16:20:56 +05:45
parent 7816931e75
commit 85aa0905bd
2 changed files with 3 additions and 1 deletions

View File

@ -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))

View File

@ -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)