Skip to content

Instantly share code, notes, and snippets.

View augustorsouza's full-sized avatar

Augusto Souza augustorsouza

View GitHub Profile
@augustorsouza
augustorsouza / NetworkingPlayground.swift
Created June 26, 2018 01:04 — forked from ptseng/NetworkingPlayground.swift
Code Sample for Leveraging Structs and Generics in the Networking Layer with Swift 4 (An update to objc.io Swift Talk)
import Foundation
import UIKit
import PlaygroundSupport
// MARK: HttpMethod
enum HttpMethod<Body> {
case get
case post(Body)
}