Skip to content

Commit f931523

Browse files
committed
Support scene enabled applications
1 parent 1ee7646 commit f931523

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

TouchPrinter/TouchPrinter.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ extension UIWindow {
4444
dotWindow.rootViewController = UIViewController()
4545
dotWindow.frame = UIScreen.main.bounds
4646
dotWindow.isHidden = false
47+
if #available(iOS 13.0, *) {
48+
dotWindow.windowScene = UIApplication.shared.keyWindow?.windowScene
49+
}
4750
dotWindow.backgroundColor = .clear
4851
dotWindow.addSubview(dot)
4952

0 commit comments

Comments
 (0)