Skip to content

Commit c5fd0b6

Browse files
woko666RuiAAPeres
authored andcommitted
Changed the way current window is retrieved (#217)
1 parent aa0e4c2 commit c5fd0b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ImageViewer/Source/Extensions/UIApplication.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import UIKit
1111
extension UIApplication {
1212

1313
static var applicationWindow: UIWindow {
14-
return (UIApplication.shared.delegate?.window?.flatMap { $0 })!
14+
return UIApplication.shared.keyWindow!
1515
}
1616

1717
static var isPortraitOnly: Bool {

0 commit comments

Comments
 (0)