I am working on iMessage app extension, I need to get app window in this extension for some reasons. Previously I was doing like this as mentioned bellow :-
guard let currentWindow : UIWindow = UIApplication.shared.keyWindow else {return}
in xcode 12 it was working perfectly. On the other hand after updating to 12.5.1 , this started giving me error for the same code.
As follow :-
Secondly, I am not able to call UIApplication.shared.canOpenURL(settingsUrl)