You want to implement a share button that takes a screenshot from your app and let’s users share it to social media.
You cant find the complete project on GitHub here.
Let’s get started with a clean project.
Let’s start with a clean project. Add a share button to the default view controller. For the button image, you can choose square.and.arrow.up
to make it look like a native share button.
Add a new view controller which will produce the image to be shared. **Do not **add a segue from the old view controller to the new one — this will be done programmatically.
#programming #ios #social-media #swift #swift-programming