Mitigate overlap of sheet/alert during onboarding

This commit is contained in:
Davide 2024-11-26 19:19:15 +01:00
parent b34019e4eb
commit e0f16cbb3e
No known key found for this signature in database
GPG Key ID: A48836171C759F5E
1 changed files with 7 additions and 0 deletions

View File

@ -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)")