Wow, I wish I had seen this excellent video yesterday. I needed to implement a sharesheet from a .sheet that worked for both iOS and ipadOS in iOS 15. I banged my head on the keyboard for quite a while. :) Wow is this MUCH more elegant and simple! Thanks for another spectacular video. I could not get the Control-Shift-Option trick to work. I would get just the normal option box. I do use the addon Multiliner, which does the same thing. I agree; easier to follow the code!
would be great if you could address transferable. that's the real crux. just sharing a link results in an ugly preview. giving it a text as well produces wonky behaviour with different apps. only resolution is to use transferable but that's a crazy can of worms
Per usual, fantastic content! Now you've got me trying to add a Share to my app. I'd like to have a context menu appear when a list item is pressed. The equivalent in your Wine example would be to have a list of wine items. Long-press one and bring up a share for that item. I'm struggling trying to determine where to render my view so it's available to share. Thoughts?
You may not be able to use a sharelink in this instance. I have not tried it myself, but I have run in to some limitations and resort to a UIViewRepresentable to create a ShareSheet using UIKit
Hello Stewart, thank you very much for the extensive explanation as always. Is it possible to pre-populate the e-mail account as well as the recipient of mail and messages with ShareLink?
do you know if it's possible to go directly to a app's share extension with the passed data? And not have to show the share sheet and then tap the say Snapchat app icon, Instead just open the Snapchat share extension directly from your app.
Nice tutorial! Thanks for that! Do you know if there is any way to load the ShareLink's item: property lazily? I want to generate a CSV of the current data in my view, but not when the view appears. Only when the user taps the share button. Does this have to be done by loading a separate view with a button that just mimics a share button using the SF symbols share icon?
@@StewartLynch i think thats a bug if you give it a try, and you try to share the rendered image and a mssage over whatsapp only the message is shared, but if you only have the renderimage it shares it over whatsapp, also i get a lot of webkit error when using sharelink, do you expirience the same?
Hey Stewart, great tutorial! What if I want to share let's say to Instagram DM or Snapchat DM modally but without showing the share sheet first? I've been trying to copy the behavior like Lapse or Locket Widget for their 3rd party sharing feature because it's more direct and simplified, but it seems there are lack of resources online. Wondering if you have any idea about how to achieve that? Thanks and good day!
Very good video showing how to use ShareLinks and code hints. The video/audio pacing was great.
Thanks, great for reference. And the 'control shift click' tip is just pure gold!
You should watch my 3 part series on Xcode tips as there are a lot of worthwhile shortcuts to know.
@@StewartLynch definitely will do now :)
Very well done and IMHO very useful. Great followup to imageRenderer
Wow, I wish I had seen this excellent video yesterday. I needed to implement a sharesheet from a .sheet that worked for both iOS and ipadOS in iOS 15. I banged my head on the keyboard for quite a while. :) Wow is this MUCH more elegant and simple! Thanks for another spectacular video. I could not get the Control-Shift-Option trick to work. I would get just the normal option box. I do use the addon Multiliner, which does the same thing. I agree; easier to follow the code!
Thank you so much Stewart... That's useful amazing lessons
Very well explained, thank you very much 🙏👍🙂
Excellent video and explanation!!
Thank you Stewart, great work as usual 🙏
Excelent video, thank you!! The content is very important for me
Nice! It was a lot of help! Thanks Stewart!
Glad it helped!
would be great if you could address transferable. that's the real crux. just sharing a link results in an ugly preview. giving it a text as well produces wonky behaviour with different apps. only resolution is to use transferable but that's a crazy can of worms
Per usual, fantastic content! Now you've got me trying to add a Share to my app.
I'd like to have a context menu appear when a list item is pressed. The equivalent in your Wine example would be to have a list of wine items. Long-press one and bring up a share for that item. I'm struggling trying to determine where to render my view so it's available to share. Thoughts?
You may not be able to use a sharelink in this instance. I have not tried it myself, but I have run in to some limitations and resort to a UIViewRepresentable to create a ShareSheet using UIKit
Thank you Stewart for this awesome tutorial, could you please explain how to create own Action Extension in iSwiftUI? Thank you in advance.
I am afraid that I don’t know what you mean by an Action extension. Can you explain more please?
Hello Stewart, thank you very much for the extensive explanation as always. Is it possible to pre-populate the e-mail account as well as the recipient of mail and messages with ShareLink?
I don’t believe so because mail is only one of the options.
do you know if it's possible to go directly to a app's share extension with the passed data? And not have to show the share sheet and then tap the say Snapchat app icon, Instead just open the Snapchat share extension directly from your app.
Nice tutorial! Thanks for that! Do you know if there is any way to load the ShareLink's item: property lazily? I want to generate a CSV of the current data in my view, but not when the view appears. Only when the user taps the share button. Does this have to be done by loading a separate view with a button that just mimics a share button using the SF symbols share icon?
Unfortunately no. You have to revert to the older version
@@StewartLynch Ok. Thanks!
Can we create our own Custom share sheet while using ShareLink too ?
No
Just one question, why if you try sharing using WhatsApp instead of iMessage the image is no attached just the message?
No idea. Sorry. I do not use WhatsApp
@@StewartLynch i think thats a bug if you give it a try, and you try to share the rendered image and a mssage over whatsapp only the message is shared, but if you only have the renderimage it shares it over whatsapp, also i get a lot of webkit error when using sharelink, do you expirience the same?
Hey Stewart, great tutorial! What if I want to share let's say to Instagram DM or Snapchat DM modally but without showing the share sheet first? I've been trying to copy the behavior like Lapse or Locket Widget for their 3rd party sharing feature because it's more direct and simplified, but it seems there are lack of resources online. Wondering if you have any idea about how to achieve that? Thanks and good day!
YOu may have to revert to the UIKit version for that unfortunately. There are some definite limitations to this API