Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Source/Infra/EKWindow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class EKWindow: UIWindow {
init(with rootVC: UIViewController) {
if #available(iOS 13.0, *) {
// TODO: Patched to support SwiftUI out of the box but should require attendance
if let scene = UIApplication.shared.connectedScenes.filter({$0.activationState == .foregroundActive}).first as? UIWindowScene {
if let scene = UIApplication.shared.connectedScenes.first as? UIWindowScene {
super.init(windowScene: scene)
} else {
super.init(frame: UIScreen.main.bounds)
Expand Down
2 changes: 1 addition & 1 deletion Source/Infra/EKWindowProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ final class EKWindowProvider: EntryPresenterDelegate {
/** Boilerplate generic setup for entry-window and root-view-controller */
private func setupWindowAndRootVC() -> EKRootViewController {
let entryVC: EKRootViewController
if entryWindow == nil {
if entryWindow == nil || rootVC == nil {
entryVC = EKRootViewController(with: self)
entryWindow = EKWindow(with: entryVC)
mainRollbackWindow = UIApplication.shared.keyWindow
Expand Down