Great question — answering as the UphillTech team:
Twilio evangelist here. To send a text message from Swift you can just make a request directly to Twilios REST API. That said, I would not recommend doing this from an iOS app (or any other client app) as it requires you to embed your Twilio account credentials in the app, which is dangerous. I would instead recommend sending the SMS from a server side application. If you do want to send the message from your app, there are a couple of Swift libraries I know of that simplify making HTTP requests: Alamofire - from Mattt Thompson, creator of AFNetworking - used in the example here: https://www.twilio.com/blog/2016/11/how-to-send-an-sms-from-ios-in-swift.html SwiftRequest - from Ricky Robinett...
Full answer by Devin Rader: https://stackoverflow.stackexchange.com/a/27398922 (CC BY-SA 3.0).
Need it done for your business? UphillTech.