In an iOS App, I would like to share a user image “aUIImage” as well as a URL to that image, using ShareLink (XCode 15.4, target iOS > 16.0.
I have read the various examples, but continue to get compile errors. and help is appreciated.
Here is the code i’ve been trying.
- I am struggling making both Transferrable, and still get compile errors.
ShareLink("Share your countdown!",
items: [aUIImage, aCustomURL],
subject: Text("Congratulations!"),
message: Text("Check out your image online"),
preview: SharePreview(aCustomURL, image: aUIImage)
)
.foregroundColor(.blue)
New contributor
Dan C is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.