Signed-off-by: Matt Bruce <mbrucedogs@gmail.com>
This commit is contained in:
parent
1fd0c88d3d
commit
b9bec7a5b2
@ -110,7 +110,10 @@ struct ContentView: View {
|
|||||||
OnboardingView {
|
OnboardingView {
|
||||||
onboardingState.completeWelcome()
|
onboardingState.completeWelcome()
|
||||||
}
|
}
|
||||||
.transition(.opacity)
|
.transition(.asymmetric(
|
||||||
|
insertion: .opacity,
|
||||||
|
removal: .opacity.combined(with: .scale(scale: 1.1))
|
||||||
|
))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.sheet(isPresented: $keepAwakePromptState.isPresented) {
|
.sheet(isPresented: $keepAwakePromptState.isPresented) {
|
||||||
@ -137,7 +140,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(.easeInOut(duration: 0.3), value: onboardingState.hasCompletedWelcome)
|
.animation(.spring(duration: 0.6, bounce: 0.3), value: onboardingState.hasCompletedWelcome)
|
||||||
}
|
}
|
||||||
|
|
||||||
private func shouldShowKeepAwakePromptForTab() -> Bool {
|
private func shouldShowKeepAwakePromptForTab() -> Bool {
|
||||||
|
|||||||
@ -418,7 +418,7 @@ struct OnboardingView: View {
|
|||||||
|
|
||||||
private func triggerCelebration() {
|
private func triggerCelebration() {
|
||||||
// Use a more subtle transition to the main app
|
// Use a more subtle transition to the main app
|
||||||
withAnimation(.easeIn(duration: 0.3)) {
|
withAnimation(.spring(duration: 0.6, bounce: 0.3)) {
|
||||||
onComplete()
|
onComplete()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user