Skip to content

Commit

Permalink
Support scene enabled applications
Browse files Browse the repository at this point in the history
  • Loading branch information
congnd committed Aug 3, 2021
1 parent 1ee7646 commit f931523
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions TouchPrinter/TouchPrinter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ extension UIWindow {
dotWindow.rootViewController = UIViewController()
dotWindow.frame = UIScreen.main.bounds
dotWindow.isHidden = false
if #available(iOS 13.0, *) {
dotWindow.windowScene = UIApplication.shared.keyWindow?.windowScene
}
dotWindow.backgroundColor = .clear
dotWindow.addSubview(dot)

Expand Down

0 comments on commit f931523

Please sign in to comment.