Skip to content

Instantly share code, notes, and snippets.

@schevgeny
Created May 25, 2021 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save schevgeny/49cd3c7c8e7034db09f295799ee777c6 to your computer and use it in GitHub Desktop.
Save schevgeny/49cd3c7c8e7034db09f295799ee777c6 to your computer and use it in GitHub Desktop.
fileprivate func requestReview() {
if #available(iOS 10.3, *) {
//let isShow = CONFIG_MANAGER.getBool(.ifNeedRequestReview)
//if isShow == true {
if let scene = UIApplication.shared.connectedScenes.first(where: { $0.activationState == .foregroundActive }) as? UIWindowScene {
SKStoreReviewController.requestReview(in: scene)
}
//}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment