Sending a text from my app

I am modifying the Recipe App and I would like to be able to send the ingredients via text to a phone. Could someone suggest where to start?

Thanks, Todd

Todd, do you want this to be sent from the user’s phone to another? Or happen in the background?

If in the background, lookup Twilio SendGrid

Hello, I want the user to be able to send the ingredients as a grocery list to their phone or another phone. Thanks

Todd

I’m not sure if this works in SwiftUI yet, but this is the place to start

https://developer.apple.com/documentation/messageui/mfmessagecomposeviewcontroller

You can call a view controller that will use the text interface and you can fill in whatever the text is going to be so all the user has to do is hit send (similar to emailing from an app, it automatically pulls up your default email app)