Move vote animation to Customize tab as persistent user setting

Replace random animation selection with a user-configurable picker on
the Customize tab between Mood Style and Notifications. Confetti is
the default. Selecting a style shows an inline preview that auto-plays
the animation then dismisses itself. Remove Animation Lab from Settings.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Trey t
2026-02-24 11:47:40 -06:00
parent c643feb1d6
commit 36be57e47d
6 changed files with 193 additions and 51 deletions

View File

@@ -62,8 +62,6 @@ struct SettingsContentView: View {
privacyButton
analyticsToggle
animationLabButton
#if DEBUG
// Debug section
debugSectionHeader
@@ -200,47 +198,6 @@ struct SettingsContentView: View {
.padding(.horizontal, 4)
}
// MARK: - Animation Lab
@State private var showAnimationLab = false
private var animationLabButton: some View {
Button {
showAnimationLab = true
} label: {
HStack(spacing: 12) {
Image(systemName: "sparkles")
.font(.title2)
.foregroundColor(.purple)
.frame(width: 32)
VStack(alignment: .leading, spacing: 2) {
Text("Animation Lab")
.foregroundColor(textColor)
Text("Experiment with vote celebrations")
.font(.caption)
.foregroundStyle(.secondary)
}
Spacer()
Image(systemName: "chevron.right")
.font(.caption)
.foregroundStyle(.tertiary)
}
.padding()
}
.background(theme.currentTheme.secondaryBGColor)
.fixedSize(horizontal: false, vertical: true)
.cornerRadius(Constants.viewsCornerRaidus, corners: [.topLeft, .topRight, .bottomLeft, .bottomRight])
.sheet(isPresented: $showAnimationLab) {
NavigationStack {
DebugAnimationSettingsView()
}
}
}
// MARK: - Debug Section
#if DEBUG