From e0f16cbb3e9e61f72490d98380442526aba01ac8 Mon Sep 17 00:00:00 2001 From: Davide Date: Tue, 26 Nov 2024 19:19:15 +0100 Subject: [PATCH] Mitigate overlap of sheet/alert during onboarding --- .../Sources/AppUIMain/Views/App/OnboardingModifier.swift | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Passepartout/Library/Sources/AppUIMain/Views/App/OnboardingModifier.swift b/Passepartout/Library/Sources/AppUIMain/Views/App/OnboardingModifier.swift index b6a35c5e..bdfd67f5 100644 --- a/Passepartout/Library/Sources/AppUIMain/Views/App/OnboardingModifier.swift +++ b/Passepartout/Library/Sources/AppUIMain/Views/App/OnboardingModifier.swift @@ -67,6 +67,13 @@ struct OnboardingModifier: ViewModifier { private extension OnboardingModifier { func advance() { + Task { + try await Task.sleep(for: .milliseconds(300)) + doAdvance() + } + } + + func doAdvance() { pp_log(.app, .info, "Current step: \(step.debugDescription)") step = step.nextStep pp_log(.app, .info, "Next step: \(step.debugDescription)")