Share live photo with UIActivityViewController

722 Views Asked by At

I generate a live photo from a couple of images and get a PHLivePhoto object in the end. Now I want to share that photo via a UIActivityViewController. The initialisation looks as follows:

let activityController = UIActivityViewController(activityItems: [text, livePhoto], applicationActivities: nil)

When I send a message with that livePhoto attached it only sends a static image. Same for saving it to the camera roll.

How can I share the actual live photo, so that the user can replay it when he/she saves it to the camera roll for example?

1

There are 1 best solutions below

2
On

I dont think you can do like that with UIActivityViewController

UIActivityViewController class is mainly created for copying items to the pasteboard and share.

For more info read below link

https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIActivityViewController_Class/