This might be useful for iOS 15+:
// try getting current scene
guard let currentScene = UIApplication.shared.connectedScenes.first as? UIWindowScene else {
print("UNABLE TO GET CURRENT SCENE")
return
}
// show review dialog
SKStoreReviewController.requestReview(in: currentScene)
Post
Replies
Boosts
Views
Activity
This might be useful for iOS 15+:
// try getting current scene
guard let currentScene = UIApplication.shared.connectedScenes.first as? UIWindowScene else {
print("UNABLE TO GET CURRENT SCENE")
return
}
// show review dialog
SKStoreReviewController.requestReview(in: currentScene)