Skip to content

Instantly share code, notes, and snippets.

@ssoper
Created July 21, 2017 15:33
Show Gist options
  • Save ssoper/c010f619de68c0c853cfe652af373fee to your computer and use it in GitHub Desktop.
Save ssoper/c010f619de68c0c853cfe652af373fee to your computer and use it in GitHub Desktop.
var distributedThruTestFlight: Bool {
if let sandboxReceiptHasSuffix = Bundle.main.appStoreReceiptURL?.path.hasSuffix("sandboxReceipt"),
sandboxReceiptHasSuffix == true {
return true
}
return false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment