A simple SwiftUI popover to send email, also accepts attachements.
Usage:
import SwiftUI
import EmailView
import MessageUI
struct ContentView: View {
@State var result: Result<MFMailComposeResult, Error>?
var body: some View {
EmailView(
result: $result,
recipients: ["hello@foobar.com"],
subject: "Hello World",
body: """
Hello hello hello
""",
attachements: []
)
}
}
Used in Packrat