Fix memory leaks and add debug tools, remove ControlCenterTip

Memory optimization:
- Add onDisappear cleanup for repeatForever animations in LockScreenView
- Add onDisappear cleanup for animations in FeelsSubscriptionStoreView
- Add onDisappear cleanup in AddMoodHeaderView and PaywallPreviewSettingsView

Debug improvements:
- Add test data and clear data buttons to Settings (debug builds only)

TipKit changes:
- Remove ControlCenterTip (unused)
- Add TipKit-Tips.md documentation

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Trey t
2025-12-28 21:07:22 -06:00
parent c4e013763a
commit e98142c72e
9 changed files with 370 additions and 60 deletions

View File

@@ -151,6 +151,10 @@ struct CelestialMarketingContent: View {
showContent = true
}
}
.onDisappear {
animateGradient = false
animateOrbs = false
}
}
}
@@ -221,6 +225,10 @@ struct GardenMarketingContent: View {
showContent = true
}
}
.onDisappear {
bloomPhase = false
swayPhase = false
}
}
}
@@ -299,6 +307,11 @@ struct NeonMarketingContent: View {
showContent = true
}
}
.onDisappear {
pulsePhase = false
glowPhase = false
scanlineOffset = 0
}
}
}
@@ -358,6 +371,9 @@ struct MinimalMarketingContent: View {
showContent = true
}
}
.onDisappear {
breathe = false
}
}
}
@@ -415,6 +431,9 @@ struct ZenMarketingContent: View {
showContent = true
}
}
.onDisappear {
inkFlow = false
}
}
}
@@ -548,6 +567,9 @@ struct MixtapeMarketingContent: View {
showContent = true
}
}
.onDisappear {
tapeRotation = false
}
}
}
@@ -612,6 +634,9 @@ struct HeartfeltMarketingContent: View {
showContent = true
}
}
.onDisappear {
heartbeat = false
}
}
}
@@ -674,6 +699,9 @@ struct LuxeMarketingContent: View {
showContent = true
}
}
.onDisappear {
shimmer = false
}
}
}
@@ -738,6 +766,9 @@ struct ForecastMarketingContent: View {
showContent = true
}
}
.onDisappear {
cloudDrift = false
}
}
}
@@ -802,6 +833,9 @@ struct PlayfulMarketingContent: View {
showContent = true
}
}
.onDisappear {
bounce = false
}
}
}
@@ -858,6 +892,9 @@ struct JournalMarketingContent: View {
showContent = true
}
}
.onDisappear {
pageFlip = false
}
}
}
@@ -1452,6 +1489,9 @@ struct EmotionOrb: View {
pulse = true
}
}
.onDisappear {
pulse = false
}
}
}