How to set email recipients in UIActivityViewController in Swift. Is it possible?

I want to add a selection to my UIActivityViewController so that my users can send an email to each of their contacts. How can I assign email addresses to the recipient address of the exchange through the UIActivityViewController?

+5
source share
2 answers

No, this is not possible with the UIActivityViewController . Recipients can only be added to the MFMailComposeViewController . Therefore, you should try this instead of the UIActivityViewController .

+2
source

You cannot pre-populate this controller. It is usually used for sharing, and the user chooses to whom they want to send an email.

You should use the MFMailComposeViewController for personalized email prefilling.

+2
source

Source: https://habr.com/ru/post/1263732/


All Articles