The code examples from Apple's Swift book available on the iBooks store.