SKStoreReviewController block the current view

55 Views Asked by At

I use SKStoreReviewController in my viewController, the rating dialog appears but when I select Not now and close the dialog the current view stays blocked and doesn't allow interaction.

In my viewDidLoad I added this code:

if #available(iOS 14.0, *),
    let scene = UIApplication.shared.connectedScenes.first as? UIWindowScene {
    SKStoreReviewController.requestReview(in: scene)
} else {
    SKStoreReviewController.requestReview()
}

Any ideas?

0

There are 0 best solutions below