I use this code to evaluate an app from an ios app.
let appLink = "https://itunes.apple.com/us/app/[name of the app]/id[idnumber]?mt=8"
let url = URL(string: appLink)
UIApplication.shared.openURL(url!)
the problem is that Safari says "Invalid page address"
Is there any way to make it work? I am using xcode 9 and swift 4
source
share