Learn Courses My Dashboard

SwiftUI Share Sheet

When I am using share sheet to share content via email; the subject of the content is blank and I don’t see a way to set the subject line.

I am trying to share some content using an email app, I would like to set the subject title in the email when the same time I pass my content to the email app.

This stackoverflow thread may assist.

@Chris_Parker Thank you this is super helpful

I notice the stackoverflow thread is focusing on how to send an email directly and not using the share sheet for the user to select which app they want to use to share their content.

I was wondering if there is a way to use the share sheet to give the user options for which app they want to use for sharing; and if they select the email app then I want to set the subject line with some text when I send the share content to the body of the email.

Thank you for your assistance.