So I have a share button, and I want to add a link to the shared text which redirects to my game on the App Store, but since my app isn't on the App Store yet I have to somehow generate it programmatically. How do I do that?
func share() {
let highscore = UserDefaults.standard.integer(forKey: "highscore")
let activityVC = UIActivityViewController(activityItems: ["I just scored a new Highscore of \(highscore), can you beat me? /*Here should be the link to the game on the App Store*/"], applicationActivities: nil)
activityVC.popoverPresentationController?.sourceView = self.view
self.present(activityVC, animated: true, completion: nil)
}