Skip to content

Instantly share code, notes, and snippets.

View Ingelheim's full-sized avatar

Lukas Ingelheim Ingelheim

View GitHub Profile
@thilo11
thilo11 / pop-pg.swift
Created September 18, 2015 16:19
The Xcode 7 playground for the Swift Meetup "Protocol-Oriented Programming in Swift" http://www.meetup.com/de/Swift-Meetup-Hamburg/events/224604913/
import XCPlayground
import Foundation
// in Xcode 7 use Editor/Show Rendered Markup to display the formatted comments
//: # First things first: The Protocols
//: It is good Swift practice to start with your protocols
//: Instead of a common base classes we define protocols
protocol Hardware {
var name: String {get}