Instagram Sharing to Feed iOS not working (UIDocumentInteractionController) Instagram Sharing to Feed iOS not working (UIDocumentInteractionController) swift swift

Instagram Sharing to Feed iOS not working (UIDocumentInteractionController)


I was struggling with this and ended up using the UIActivityViewController and it worked.

 let items = [image]    let ac = UIActivityViewController(activityItems: items, applicationActivities: nil)    present(ac, animated: true)


With Instagram version of 171.0 this issue is fixed. It's working but it's very ugly, you can't choose story or feed, and you can't edit photo.

I believe that in the feature instagram will make this feature better.

If you need to share just one image you can use this workaround:

let ac = UIActivityViewController(activityItems: [imageUrl, imageUrl], applicationActivities: nil)present(ac, animated: true)

(imageUrl intentionally typed 2 times)Then you will get following screen:enter image description here