Fix for UI tests now showing the status bar. (#2065)

This commit is contained in:
Doug
2023-11-13 07:30:41 +00:00
committed by GitHub
parent b5cc2cbf61
commit a2c2f872cd
3 changed files with 6 additions and 3 deletions
@@ -42,7 +42,7 @@ class UserIndicatorController: ObservableObject, UserIndicatorControllerProtocol
var window: UIWindow? {
didSet {
let hostingController = UIHostingController(rootView: UserIndicatorPresenter(userIndicatorController: self))
let hostingController = UIHostingController(rootView: UserIndicatorPresenter(userIndicatorController: self).statusBarHidden(ProcessInfo.isRunningUITests))
hostingController.view.backgroundColor = .clear
window?.rootViewController = hostingController
}