I tried using the MFMailComposeViewController
to send an email in my app.
let email = "..."
let mailComposer = MFMailComposeViewController()
mailComposer.mailComposeDelegate = self
mailComposer.setToRecipients([email])
self.navigationController?.present(mailComposer, animated: true)
After running my app the composer screen is showing, but the cancel
and send
buttons are not showing. I tried many possible solution, as change tintColor
in both navigationControllers. For example:
mailComposer.navigationBar.tintColor = .red
But the "issue" persists.
Any ideas?