Skip to content

Instantly share code, notes, and snippets.

View plaetzchen's full-sized avatar

Philip Brechler plaetzchen

View GitHub Profile
@uberbruns
uberbruns / popWebAPI.swift
Last active August 29, 2015 14:23
A draft on how to use Protocol-Oriented Programming in Swift 2 with a web API
import UIKit
// We define a APIResultType as something that can be generated from a JSON
protocol APIResultType {
init?(json: String)
}