When I talked about Swift

Returning a return value from a resume() callback in Swift

January 19, 2016 9:50 am
Categorised in:
Reading Time: < 1

Having trouble with Swift functions that run an async session e.g. getting image or JSON data from a server? Me too. This post on Stack Overflow saved my mental state from debilitating further. To fix you want to set your function up like this: getJsonOffServer(imageId: String, completion: ((image: UIImage?) -> Void)) {... View Article

A complication with Clockkit complications

January 11, 2016 1:43 pm
Categorised in: ,
Reading Time: 2 minutes

I’m currently messing around creating complications for an IOS/watch app I’m building. One thing that I’ve found particularly weird given the number of templates available is that you can’t overlay text over an image on the fly. You can do a lot of other layouts, but you can’t do that.... View Article

Do try and catch my errors in Swift 2

November 10, 2015 11:26 am
Categorised in:
Reading Time: < 1

This is bugging me, I keep forgetting it, I’m noting it down. Swift 2 has changed error handling, just as I was wrapping my head around error handling in Swift 1. Typicals. The easiest thing to do is wherever you see a method which ends with error e.g.: audioRecorder =... View Article