SwiftUI: Send email

@Matteo’s answer is good but it needs to use the presentation environment variable. I have updated it here and it addresses all of the concerns in the comments. import SwiftUI import UIKit import MessageUI struct MailView: UIViewControllerRepresentable { @Environment(\.presentationMode) var presentation @Binding var result: Result<MFMailComposeResult, Error>? class Coordinator: NSObject, MFMailComposeViewControllerDelegate { @Binding var presentation: PresentationMode … Read more