From a26320e1928fedef7790eb7660d4bafdea78a899 Mon Sep 17 00:00:00 2001 From: Dominik Kapusta Date: Tue, 14 Nov 2023 22:24:07 +0100 Subject: [PATCH] Display favicons fetcher onboarding only when there's no other view controller being presented --- DuckDuckGo/FaviconsFetcherOnboarding.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DuckDuckGo/FaviconsFetcherOnboarding.swift b/DuckDuckGo/FaviconsFetcherOnboarding.swift index 7fe595973b..329a8e2d1c 100644 --- a/DuckDuckGo/FaviconsFetcherOnboarding.swift +++ b/DuckDuckGo/FaviconsFetcherOnboarding.swift @@ -37,7 +37,8 @@ final class FaviconsFetcherOnboarding { @MainActor func presentOnboardingIfNeeded(from viewController: UIViewController) { - guard shouldPresentOnboarding else { + let isCurrentlyPresenting = viewController.presentingViewController != nil + guard shouldPresentOnboarding, !isCurrentlyPresenting else { return } didPresentFaviconsFetchingOnboarding = true