Skip to content

Commit

Permalink
Fix brave/brave-ios#6577: Hide Active NTP when backgrounding the app …
Browse files Browse the repository at this point in the history
…in private mode (brave/brave-ios#7937)
  • Loading branch information
kylehickinson authored Aug 23, 2023
1 parent fb99b27 commit 6b7c52a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/Brave/Frontend/Browser/BrowserViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6b7c52a

Please sign in to comment.