Persuading users to review your app can be a painful task. The process of delving into the App Store to find your app in a ocean of millions of other apps is enough to discourage most everyday consumers. You can simplify the process by adding a Rate My App UIButton in the form of a star symbol like we have used in Time Void.
Once you have created a UIButton Touch Up Event, insert the below code to enable the button to launch the App Store on your app's review tab. This can also be used in Sprite Kit with a touch began function.
Swift Code Snippet
let appleID = "1154366081" let appStoreLink = "https://itunes.apple.com/app/id\(appleID)?action=write-review" UIApplication.shared.open(URL(string: appStoreLink)!, options: [:], completionHandler: nil)
Sign into iTunes Connect > My Apps > Click on your apps name. This will open up the App Information page. You can find the General Information subheader.
Keep in mind this feature can only be tested on a device. If your app hasn't been released on the App Store yet, you can test it using another Apple ID like the Apple ID string shown in the sample code above, which takes you to my Time Void review tab. Don't forget to check that you are using the correct Apple ID before release.
Tested in iOS 10.1.1, Xcode 8.1 and Swift 3
October 5th, 2017