From 22ebea942b66437ccac50bdded8ce0d39e23c687 Mon Sep 17 00:00:00 2001 From: Christopher Brind Date: Wed, 3 Apr 2024 04:26:44 +0100 Subject: [PATCH] fix flash of dax dialog onboarding text (#2662) Task/Issue URL: https://app.asana.com/0/414709148257752/1206983882892075/f Tech Design URL: CC: Description: Fix a flash of text when the onboarding loads caused by the MainVC refactoring. --- DuckDuckGo/DaxOnboardingViewController.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DuckDuckGo/DaxOnboardingViewController.swift b/DuckDuckGo/DaxOnboardingViewController.swift index 05939278ad..1e92a93f79 100644 --- a/DuckDuckGo/DaxOnboardingViewController.swift +++ b/DuckDuckGo/DaxOnboardingViewController.swift @@ -69,7 +69,8 @@ class DaxOnboardingViewController: UIViewController, Onboarding { guard !view.isHidden else { return } daxDialogContainerHeight.constant = daxDialog?.calculateHeight() ?? 0 - + self.daxDialog?.reset() + DispatchQueue.main.asyncAfter(deadline: .now() + Constants.animationDelay) { self.transitionFromOnboarding() }