Last active
February 6, 2020 20:20
-
-
Save giovani-pereira-ifood/5e038219a34babadf54279968663d4fc to your computer and use it in GitHub Desktop.
addImageToPasteboard.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let imageData = image.pngData() | |
let pasteboardItem: [[String : Any]] = [["com.instagram.sharedSticker.backgroundImage" : imageData]] | |
UIPasteboard.general.setItems(pasteboardItem, options: [:]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment