Contents

mailComposeDelegate

The mail composition view controller’s delegate.

Declaration

weak var mailComposeDelegate: (any MFMailComposeViewControllerDelegate)? { get set }

Discussion

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