Swift Quick Reference

Extensions

extension SomeType {
	// new functionality to add to SomeType goes here
}

Enums

Loops

Tuples

let someTuple: (Double, Double) = (3.14159, 2.71828)

Introspection

import Foundation

class PrintClassName : NSObject {
    override init() {
        super.init()
        println(NSStringFromClass(self.dynamicType))
    }
}

Typealias

Lazy