Code Block class KeyboardViewController: UIInputViewController { @IBAction func shareAction(_ sender: UIButton) { DispatchQueue.main.async { let text = "This is the text....." let textShare = [ text ] let activityViewController = UIActivityViewController(activityItems: textShare, applicationActivities: nil) activityViewController.popoverPresentationController?.sourceView = self.buttons[ self.present(activityViewController, animated: true, completion: nil) } } }
I got these errors
[sharesheet] connection invalidated
[sharesheet] xpc connection unexpectedly invalidated
and with empty share activity
https://stackoverflow.com/questions/66108073/uiactivityviewcontroller-empty-inside-uiinputviewcontroller