First I don\'t know how to get the link before I submit my app, and if the link is for each country app store or is it universal?
Also I don\'t know if the way to do it
Swift 3
func rateApp(){ UIApplication.shared.open(URL(string : "itms-apps://itunes.apple.com/app/id959379869")!, options: [:]) { (done) in // Handle results }}
id959379869 This is the id when you go on your iTunes page of your app