Signed-off-by: Matt Bruce <mbrucedogs@gmail.com>

This commit is contained in:
Matt Bruce 2026-02-02 22:32:41 -06:00
parent b9bec7a5b2
commit 9247c36721
2 changed files with 5 additions and 4 deletions

View File

@ -112,8 +112,9 @@ struct ContentView: View {
} }
.transition(.asymmetric( .transition(.asymmetric(
insertion: .opacity, insertion: .opacity,
removal: .opacity.combined(with: .scale(scale: 1.1)) removal: .opacity.combined(with: .move(edge: .bottom)).combined(with: .scale(scale: 0.9))
)) ))
.zIndex(1) // Ensure it stays on top during transition
} }
} }
.sheet(isPresented: $keepAwakePromptState.isPresented) { .sheet(isPresented: $keepAwakePromptState.isPresented) {
@ -140,7 +141,7 @@ struct ContentView: View {
guard shouldShowKeepAwakePromptForTab() else { return } guard shouldShowKeepAwakePromptForTab() else { return }
keepAwakePromptState.showIfNeeded(isKeepAwakeEnabled: clockViewModel.style.keepAwake) keepAwakePromptState.showIfNeeded(isKeepAwakeEnabled: clockViewModel.style.keepAwake)
} }
.animation(.spring(duration: 0.6, bounce: 0.3), value: onboardingState.hasCompletedWelcome) .animation(.spring(duration: 0.45, bounce: 0.2), value: onboardingState.hasCompletedWelcome)
} }
private func shouldShowKeepAwakePromptForTab() -> Bool { private func shouldShowKeepAwakePromptForTab() -> Bool {

View File

@ -417,8 +417,8 @@ struct OnboardingView: View {
} }
private func triggerCelebration() { private func triggerCelebration() {
// Use a more subtle transition to the main app // Snappier transition for a better feel
withAnimation(.spring(duration: 0.6, bounce: 0.3)) { withAnimation(.spring(duration: 0.45, bounce: 0.2)) {
onComplete() onComplete()
} }
} }