I am having a social media Application and I want to share images from other social media such as Whatsapp,FB and Instagram to my app. I am able to create a share extension please check the screenshot
Now I need 2 things
- How to store image details(Tried with userdefault but storing big image with userdefault is not food right)
- I want to make this share extension only for sharing images and text(don't want video)
i am able to get the text from
override func didSelectPost() {
// This is called after the user selects Post. Do the upload of contentText and/or NSExtensionContext attachments.
// Inform the host that we're done, so it un-blocks its UI. Note: Alternatively you could call super's -didSelectPost, which will similarly complete the extension context.
print(self.textView.text)
self.extensionContext!.completeRequest(returningItems: [], completionHandler: nil)
}