Contents

setSubject(_:)

Sets the initial text for the subject line of the email.

Declaration

func setSubject(_ subject: String)

Parameters

  • subject:

    The text to display in the subject line.

Discussion

This method replaces the previous subject text with the new text. Only call this method before you display the mail composition interface. Don’t call it after presenting the interface to the user.

See Also

Setting mail fields programmatically