18 May 2021 swiftui mail mailview MFMailComposeViewController messageui message
Reading time: 2 min
This recipe shows how to send mail from SwiftUI. You'll build a
MailView by wrapping MessageUI's
MFMailComposeViewController in a
UIViewControllerRepresentable. You'll be able to:
- Determine if you can send mail or not.
- Pass subject, message and recipients to the view via a binding.
Search our recipes!
Have a recipe for us?
Get in touch and let's grow the cookbook together!