Instance Property


The mail composition view controller’s delegate.


weak var mailComposeDelegate: MFMailComposeViewControllerDelegate? { get set }


The delegate object is responsible for dismissing the view presented by this view controller at the appropriate time. Therefore, you should always provide a delegate, and that object should implement the methods of the MFMailComposeViewControllerDelegate protocol.

See Also

Responding to the View Controller Dismissal

protocol MFMailComposeViewControllerDelegate

An interface for responding to user interactions with a mail compose view controller.