Skip to content

Instantly share code, notes, and snippets.

@meyusufdemirci
Last active May 11, 2020 19:05
Show Gist options
  • Save meyusufdemirci/73f2e4f96fa7527701a86f2997b057cc to your computer and use it in GitHub Desktop.
Save meyusufdemirci/73f2e4f96fa7527701a86f2997b057cc to your computer and use it in GitHub Desktop.
guard (
appLaunchTime + 1 == 5 ||
appLaunchTime + 1 == 8 ||
appLaunchTime + 1 == 12 ||
appLaunchTime + 1 == 15 ||
appLaunchTime + 1 == 18 ||
appLaunchTime + 1 == 21 ||
appLaunchTime + 1 == 24 ||
appLaunchTime + 1 == 27 ||
appLaunchTime + 1 == 30
) && !isRatingPopupAskedOnThisVersion() else { return }
DispatchQueue.main.asyncAfter(deadline: .now() + 40) {
SKStoreReviewController.requestReview()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment