If I run this code in swiftUI in Xcode:
ShareLink(item: "Hi", preview: SharePreview("Hi"))
I get two apps in the simulator: Messages and Reminders.
However, if I run this code to share a png or jpeg file:
let theImage = Image("kort")
//The rest of my code[...]
ShareLink(item: theImage, preview: SharePreview("This is a image", image: theImage))
It just brings up the Reminders app in the Xcode simulator.
I need to write the code so I can share a photo via the messanger app. Can someone help?
shareLink, you need to pass UUIImage
the alternative is to use UIActivityViewController