01 Field notes

Thinking,
made visible.

Swift, architecture, Apple-platform internals, and the small product decisions that make software feel considered.

Follow via RSS

02 Latest essay

6 min read

Dependency injection using factories in Swift

Original: Dependency injection using factories in Swift Original author & copyright: @johnsundell Dependency injection is one of the key tools for making code more testable. Instead of holding onto …

Read essay
  1. 03 Modularising Xcode projects Original: Modular Xcode projects Author & Copyright @pepibumur Translator: @OgreMergO Building a modular Xcode project takes a real understanding …
  2. 04 Handling non-optional optionals in Swift Original: Handling non-optional optionals in Swift Original author & copyright @johnsundell Optionals are arguably one of the most important …
  3. 05 Understanding responders and the responder chain Apps receive and handle events through responder objects. A responder is an instance of the UIResponder class — and UIView, UIViewController, and …
  4. 06 Capturing objects in Swift closures Original: Capturing objects in Swift closures Original author @johnsundell Ever since blocks were introduced to Objective-C in iOS 4, they’ve …
  5. 07 @autoclosure && @escape Closures are first-class citizens in Swift, which means you can pass them around as arguments. While learning Swift, you keep running into keywords …
  6. 08 Everything you need to know about iOS 10 notifications Overview Push notifications are something we’re all familiar with — pretty much anyone with a smartphone gets interrupted by them every day. The …
  7. 09 Reading "Garbage Collection: Algorithms and Implementations" The book Garbage Collection: Algorithms and Implementations has been making the rounds recently, and since I’ve always been curious about how GC …
  8. 10 Building an elastic view animation with UIBezierPath Original: Elastic view animation, or how I built DGElasticPullToRefresh Author: @gontovnik DGElasticPullToRefresh demonstrates a springy elastic …
  9. 11 A bit about Category in Objective-C A category in Objective-C is a compile-time mechanism that lets you tack extra methods onto an existing class. There’s one catch: you …