You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gabriel Theodoropoulos edited this page Jul 22, 2021
·
1 revision
It's often necessary to provide predefined values or data to the email that users will compose and send. For example, you may want a default subject or a specific recipient to prefill the respective fields in the email.
To do so, pass an EmailData instance to the emailComposer method. It's often handy to create that instance before passing it to the view modifier, providing one or more values and data you wish. In the next example, an EmailData instance is initialized in the view, containing the email's subject and a recipient: