Month / December, 2015

Swift Completion Closure Pattern

I’ve recently been working on a side project that will need to communicate with a back end server. In an effort to not sprinkle my network code all around the project I’ve taken to writing extensions on the NSURLSession class. This post is not about that though. It is about a useful pattern I have discovered for the completion closures I’m providing to the various network calls.

Continue Reading