i do custom Alert but find some problem with it. In my code i have to put code below, but i have error
"'windows' was deprecated in iOS 15.0: Use UIWindowScene.windows on a relevant window scene instead"
how do i replace my code?
func show() {
if #available(iOS 13, *) {
view.windowScene.keyWindow
UIApplication.shared.windows.first?.rootViewController?.present(self, animated: true, completion: nil)
} else {
UIApplication.shared.keyWindow?.rootViewController!.present(self, animated: true, completion: nil)
}
}