I\'m converting my iOS13 app for iPadOS to SceneDelegate (multi window).
How can I get the current UIWindow from the current SceneDelegate?
I know that a can
You could try:
if let window = UIApplication.shared.windows.first(where: { (window) -> Bool in window.isKeyWindow}) { //your code }
Hope this helps!