Created
May 25, 2021 14:50
-
-
Save schevgeny/49cd3c7c8e7034db09f295799ee777c6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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