iOS13 share sheet: how to set preview thumbnail when sharing UIImage
The simplest code I’ve implemented to share a UIImage with better user experience: Import the LinkPresentation framework: #import <LinkPresentation/LPLinkMetadata.h> // for Obj-C import LinkPresentation // for Swift, below Present the UIActivityViewController in the UIViewController, with [image, self]: let image = UIImage(named: “YourImage”)! let share = UIActivityViewController(activityItems: [image, self], applicationActivities: nil) present(share, animated: true, completion: nil) … Read more