For those who have ever encountered this problem, I managed to find a solution
let url: NSURL = NSBundle.mainBundle().URLForResource("\(self.imageNames[indexPath.row])", withExtension: ".gif")! let data: NSData = NSData(contentsOfURL: url)! UIPasteboard.generalPasteboard().setData(data, forPasteboardType: "com.compuserve.gif")
As it turns out, you need to use the URL and extract the NSData from the GIF from that URL.
Here I get the GIF URL that is in my package, looking for it using the name and image extension. Then I set the data in the file cabinet and bingo, we have an animated GIF when inserting the result from cardboard
Jack chamberlain
source share