From 6b7c52a1af297d4649838c3993577084706ecef4 Mon Sep 17 00:00:00 2001 From: Kyle Hickinson Date: Wed, 23 Aug 2023 17:29:52 -0400 Subject: [PATCH] Fix brave/brave-ios#6577: Hide Active NTP when backgrounding the app in private mode (brave/brave-ios#7937) --- Sources/Brave/Frontend/Browser/BrowserViewController.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/Brave/Frontend/Browser/BrowserViewController.swift b/Sources/Brave/Frontend/Browser/BrowserViewController.swift index e647b54fca85..df5cdcf1137c 100644 --- a/Sources/Brave/Frontend/Browser/BrowserViewController.swift +++ b/Sources/Brave/Frontend/Browser/BrowserViewController.swift @@ -722,6 +722,7 @@ public class BrowserViewController: UIViewController { if let tab = tabManager.selectedTab, tab.isPrivate { webViewContainerBackdrop.alpha = 1 webViewContainer.alpha = 0 + activeNewTabPageViewController?.view.alpha = 0 header.contentView.alpha = 0 presentedViewController?.popoverPresentationController?.containerView?.alpha = 0 presentedViewController?.view.alpha = 0 @@ -751,6 +752,7 @@ public class BrowserViewController: UIViewController { animations: { self.webViewContainer.alpha = 1 self.header.contentView.alpha = 1 + self.activeNewTabPageViewController?.view.alpha = 1 self.presentedViewController?.popoverPresentationController?.containerView?.alpha = 1 self.presentedViewController?.view.alpha = 1 self.view.backgroundColor = .clear