I tried the code given below to share (on Facebook/Whatsapp etc) a UIImage and a String.
I am unable to share image along with the text. I am able share the image, only if I remove the text. How can I share both at the same time
Code Block let shareController: UIActivityViewController = { let activities: [Any] = [image, text] let controller = UIActivityViewController(activityItems: activities, applicationActivities: nil) return controller}() screen.present(shareController, animated: true, completion: nil)
I am unable to share image along with the text. I am able share the image, only if I remove the text. How can I share both at the same time