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
|
// may or may not appear
|
||||||
private func requestReview() {
|
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
|
return
|
||||||
}
|
}
|
||||||
SKStoreReviewController.requestReview(in: scene)
|
SKStoreReviewController.requestReview(in: scene)
|
||||||
|
|
Loading…
Reference in New Issue