Hi!
I am trying to copy an mp4 or m4v video file to the general pasteboard and then paste it into iMessage.
let url = Bundle.main.url(forResource: "video", withExtension: "mp4")
let videoData = Data(contentsOf: url)
UIPasteboard.general.setData(videoData, forPasteboardType: "public.mpeg-4"
I can see the video is indeed in the pasteboard but it won't copy into iMessage. This is on macOS while developing an app using Catalyst.
Thanks