Hacking with Swift has been built in a very specific way to give you the skills you need to be a Swift programmer. It does this by following a set of rotating lesson types;  you create an app, then a game, then you work on a technique.

This, being the third project in the series, means it’s a technique project, and we’re re-working Project 1.

This project was all about adding social sharing functionality to the photo viewer app,  and it was much shorter than the first two projects that came before it. It was really enjoyable though, and stupidly easy to add a link that shares your app/game/whatever to Facebook or Twitter. Here it is below.

Hacking with Swift - Project 3

Hacking with Swift – Project 3

Personally I wanted to add Share Sheet functionality to the app, allowing users to share to either Facebook, Twitter, LinkedIn, etc instead of choosing either Twitter or Facebook in the code, so I’m working on that now. I did manage to add the Share Sheet, but right now it’s opening up automatically when a user selects an image instead of when the user clicks on the share button. So that’s something I need to work on.

 

Hacking with Swift - Project 3 v2

Hacking with Swift – Project 3 v2