User can save images on UIImageView into library using UIActivityViewController
sheet and also share or post it into social media as seen below:
If user selects "Save Image", UIActivityViewController has no way i know to return saved image path. It will just save and dismiss silently.
How could i retrieve the path where it is saved? I will be storing the path to access saved images and display them in another view. Thank you very much for any help.
EDIT: Below is how i present UIActivityViewController when user tapped on share button.
let imageShare = [ self.imageView.image ]
let activityViewController = UIActivityViewController(activityItems: imageShare as [Any] , applicationActivities: nil)
activityViewController.popoverPresentationController?.sourceView = self.view
activityViewController.popoverPresentationController?.sourceRect = self.shareButton.frame
self.present(activityViewController, animated: true, completion: nil)