Sharing GIF from Code on iOS
If I am not mistaken, GIF sharing on iOS is not working from the Gallery either. But my original request was for GIF sharing from code.
I found this great plugin for Unity to share images. The author also was having problems with sharing GIF on some apps. In my opinion it should be supported by the apps, as it is impossible to write a comprehensive adaptation for every app around. As the author was having issues with GIFs not showing he fixed it by converting to a UIImage -> this loses the animation of a GIF.
line 20-23 in his code are the hack, that I have removed to get animated GIF sharing. The hack was included, as gif sharing does not work everywhere. It works well with WhatsApp, Telegram, Gmail, Discord, Notes, Email (I have not tested Facebook) but not with Twitter. Imho this is a shortcoming of Twitter and not the code.
This hack must be removed to make his code work with animated GIF
UIImage *image = [UIImage imageWithContentsOfFile:filePath];
if( image != nil )
Falkenbrew - one man Devader team commented
Turns out Sharing a GIF directly from the Gallery does not work either. Loading the GIF in the Twitter App does work, so it looks like the Sharing is buggy.