Swift has only been out for a few weeks; but there’s a lot being written as people are playing around with the language. Here’s an annotated list of links about the language and how to get things done in it.
Introductions and basics
- Interesting Swift features - Some great thoughts about Swift from Mike Ash.
- Swift highlights for an ObjC developer - Matt Galloway introduces some interesting bits of Swift from the perspective of an ObjC developer.
- Generics - Terra incognita for straight ObjC developers; but important stuff. (The Swift Programming Language guide from Apple has a bit on generics, too)
Style
- Style guide - Ray Wenderlich has published his Swift style guide. I mostly agree with how he does things; but I find 2-space indentation difficult to read. It’s 4 for me.
Design Patterns in Swift
- Singleton pattern - The author recommends the nested struct approach. Seems reasonable.
- Builder pattern
- Lazy initialization - Using closures for the initialization is particularly cool
- Adopting Cocoa design patterns - from Apple.
Applications of common technologies with Swift
- Core Data stack setup in Swift - Marcus Zarra, Core Data expert explains how to setup a Core Data stack when writing in Swift.
- Integrating AFNetworking - [AFNetworking] is almost ubiquitous in iOS applications. Here’s a brief word on how to us it with a Swift app.
- Unit testing with Swift
Under the hood
- Secrets of Swift’s speed - Swift promises to be faster than ObjC. Here’s why.
- Inside Swift - Evan Swick spent some time reverse engineering Swift binaries and the runtime.