How to implement social sharing in your iOS app (Twitter and Facebook)


Just yesterday I implemented social sharing in my new app called Sigma. Here is how I did it in two easy to follow steps.

First, I added Social.framework to my project and imported it to my view controller.

Second, I wrote this code for Twitter (it’s in Swift 3.0):


And this code for Facebook:


That’s it!


Leave a Reply

Your email address will not be published. Required fields are marked *