Created
October 31, 2017 02:33
-
-
Save artemnovichkov/b479c347cca16a6422199e67a0c31fce to your computer and use it in GitHub Desktop.
Open App Store for review
This file contains hidden or 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
| func openAppStore() { | |
| let appID = 1227356223 | |
| let appURLString: String | |
| if #available(iOS 11.0, *) { | |
| appURLString = "itms-apps://itunes.apple.com/us/app/itunes-u/id\(appID)?action=write-review" | |
| } | |
| else { | |
| appURLString = "itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=\(appID)" | |
| } | |
| UIApplication.shared.openURL(URL(string: appURLString)!) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment