xcode кнопка поделиться
func share(message: String, link: String){ if let link = NSURL(string: link){ let objectsToShare = [message, link] as [Any] let activityVC = UIActivityViewController(activityItems: objectsToShare, applicationActivities: nil) self.present(activityVC, animated: true, completion: nil) } } share(message: "test", link: "https://ya.ru/")
https://stackoverflow.com/questions/37938722/how-to-implement-share-button-in-swift