Posts

Unsafe pointers in Swift: Conversion to and from a COpaquePointer (and CFunctionPointer) (Part II, Xcode 6 Beta 6; update Swift 3, Xcode 8)

Unsafe pointers in Swift: A first look (Part I, Xcode 6 Beta 6; updated Swift 3, Xcode 8)

Swift: It's all in the protocols (Part III)

Swift: Multiple protocols in generic functions and elsewhere

Swift: AnyObject is not your only option for mixing things up ('Collections of Protocol Types')

Swift generics: It's all in the protocols (Part II)

Swift generics: It's all in the protocols (Part I)

Swift: Bytes for Beginners (Part IV)

Swift: Bytes for Beginners (Part III)

Swift: Bytes for Beginners (Part II)

Swift: Bytes for Beginners (Part I)

Pure Swift: Conversion of Cocoa dependent code (Xcode 6 Beta 5)

Pure Swift: A little deeper into generics (Xcode 6 Beta 5 and Beta 6)

Pure Swift: My First Generic Method (Xcode 6 Beta 5)

Pure Swift: A one-line method to add insert functionality to String instances (Xcode 6.3; update for Xcode 7, iOS 9)

Pure Swift: A method for replacing occurrences of a string within a string (updated for Xcode 6.3.1, Swift 1.2 and Xcode 7 beta 1, Swift 2)

Swift: A pure Swift method for returning ranges of a String instance (updated for Xcode 6.3.1, Swift 1.2, Xcode 7, Swift 2 and Xcode 8.0, Swift 3)

Swift: Creating styled and attributed text with NSAttributedString and NSParagraphStyle (updated)

Swift: Use for-in loops with your own sequence types