Skip to content

Commit 9647e7b

Browse files
authored
IOS-8114 Fix key window ios15 (#374)
1 parent 6e6f6ec commit 9647e7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TangemSdk/TangemSdk/Common/Extensions/UIViewController.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ extension UIWindow {
4343
extension UIApplication {
4444
var topMostViewController : UIViewController? {
4545
let scene = UIApplication.shared.connectedScenes
46-
.filter { $0.activationState == .foregroundActive }
46+
.filter { $0.activationState == .foregroundActive || $0.activationState == .foregroundInactive }
4747
.first as? UIWindowScene
4848

4949
return scene?.keyWindow?.topmostViewController

0 commit comments

Comments
 (0)