SA
Skip to main content

Requesting Review in Swift

Requesting Review in Swift StoreKit

import StoreKit

if let windowScene = UIApplication.shared.connectedScenes.first as? UIWindowScene {
SKStoreReviewController.requestReview(in: windowScene)
}
else {
UIApplication.shared.open(URL(string: "https://apps.apple.com/app/id/1666355842?action=write-review")!)
}