mirror of
https://github.com/passepartoutvpn/passepartout-apple.git
synced 2025-02-16 12:52:11 +00:00
Replace deprecated .windows with .connectedScenes (#316)
This commit is contained in:
parent
fb47def4ed
commit
ddab76326d
@ -81,7 +81,7 @@ public final class Reviewer: ObservableObject {
|
||||
|
||||
// may or may not appear
|
||||
private func requestReview() {
|
||||
guard let scene = UIApplication.shared.windows.first(where: { $0.windowScene != nil })?.windowScene else {
|
||||
guard let scene = UIApplication.shared.connectedScenes.first(where: { $0 is UIWindowScene }) as? UIWindowScene else {
|
||||
return
|
||||
}
|
||||
SKStoreReviewController.requestReview(in: scene)
|
||||
|
Loading…
Reference in New Issue
Block a user