Copy Image with UIPasteBoard (Swift)
I recently saw this project in which a user can tap on a GIF from a custom keyboard and they would see a "copied" toolip appear. I have one question: How does one reproduce this tooltip in the products GIF-Tutorial ? Could anyone give me some sample code to work with. I understand how to use UIPasteboard and it's functions, but I can't seem to get it to work when I put in the UTI type "public.png" in this function: (I noticed in Objective-c it's "@public.png", but I placed "public.png" I couldn't find a source online for this) let imageURL = NSString(string:NSBundle.mainBundle()